changeset 1409:12ff8e03a116

* netx/net/sourceforge/jnlp/runtime/JNLPPolicy.java: all win-slashes replaced by linux-slashes before uri is created
author Jiri Vanek <jvanek@redhat.com>
date Thu, 27 Apr 2017 14:32:19 +0200
parents 1dcfb724b44c
children 97feb0a3999a
files ChangeLog netx/net/sourceforge/jnlp/runtime/JNLPPolicy.java
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Apr 27 14:30:29 2017 +0200
+++ b/ChangeLog	Thu Apr 27 14:32:19 2017 +0200
@@ -1,3 +1,8 @@
+2017-04-27  Jiri Vanek <jvanek@redhat.com>
+
+	* netx/net/sourceforge/jnlp/runtime/JNLPPolicy.java: all win-slashes replaced by
+	linux-slashes before uri is created
+
 2017-04-27  Jiri Vanek <jvanek@redhat.com>
 
 	* netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java: .old properties
--- a/netx/net/sourceforge/jnlp/runtime/JNLPPolicy.java	Thu Apr 27 14:30:29 2017 +0200
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPPolicy.java	Thu Apr 27 14:32:19 2017 +0200
@@ -185,7 +185,7 @@
         Policy policy = null;
         if (policyLocation != null) {
             try {
-                URI policyUri = new URI(policyLocation);
+                URI policyUri = new URI(policyLocation.replace("\\","/"));
                 policy = getInstance("JavaPolicy", new URIParameter(policyUri));
             } catch (IllegalArgumentException | NoSuchAlgorithmException | URISyntaxException e) {
                 OutputController.getLogger().log(OutputController.Level.ERROR_ALL, e);