/hg/icedtea-web: netx/net/sourceforge/jnlp/security/dialogs/Temp...
jvanek at icedtea.classpath.org
jvanek at icedtea.classpath.org
Wed Jul 12 16:08:48 UTC 2017
changeset 5f20a0216db3 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=5f20a0216db3
author: Jiri Vanek <jvanek at redhat.com>
date: Wed Jul 12 18:19:47 2017 +0200
netx/net/sourceforge/jnlp/security/dialogs/TemporaryPermissions.java: escaped windows path slash
diffstat:
ChangeLog | 4 ++++
netx/net/sourceforge/jnlp/security/dialogs/TemporaryPermissions.java | 5 ++++-
2 files changed, 8 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r 9562ebf56181 -r 5f20a0216db3 ChangeLog
--- a/ChangeLog Tue Jul 11 18:04:17 2017 +0200
+++ b/ChangeLog Wed Jul 12 18:19:47 2017 +0200
@@ -1,3 +1,7 @@
+2017-07-12 Jiri Vanek <jvanek at redhat.com>
+
+ * netx/net/sourceforge/jnlp/security/dialogs/TemporaryPermissions.java: escaped windows path slash
+
2017-07-11 Jiri Vanek <jvanek at redhat.com>
Alexandr Kolouch <skolnag at gmail.com>
diff -r 9562ebf56181 -r 5f20a0216db3 netx/net/sourceforge/jnlp/security/dialogs/TemporaryPermissions.java
--- a/netx/net/sourceforge/jnlp/security/dialogs/TemporaryPermissions.java Tue Jul 11 18:04:17 2017 +0200
+++ b/netx/net/sourceforge/jnlp/security/dialogs/TemporaryPermissions.java Wed Jul 12 18:19:47 2017 +0200
@@ -81,7 +81,10 @@
Matcher m = expandablePattern.matcher(target);
while (m.find()) {
// Expand any matches by reading from System properties, eg ${java.io.tmpdir} is /tmp on most systems
- target = m.replaceFirst(System.getProperty(m.group(1)));
+ String s = m.group(1);
+ String p = System.getProperty(s);
+ p = p.replace("\\", "\\\\");
+ target = m.replaceFirst(p);
m = expandablePattern.matcher(target);
}
More information about the distro-pkg-dev
mailing list