diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2015-09-18 12:59:35 +0200 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2015-09-18 12:59:35 +0200 |
commit | da6ed7d6563d91a81de6c8c14a6aa65eb9ba6433 (patch) | |
tree | 89f9b1b4531feb711da073eb8cde0518d2ef1542 | |
parent | e822a65b487de2891eacc19b717e744a1af0c87d (diff) | |
download | moa-id-spss-da6ed7d6563d91a81de6c8c14a6aa65eb9ba6433.tar.gz moa-id-spss-da6ed7d6563d91a81de6c8c14a6aa65eb9ba6433.tar.bz2 moa-id-spss-da6ed7d6563d91a81de6c8c14a6aa65eb9ba6433.zip |
fix problem with relative file URLsMOA-ID-PROXY-2.0.1
-rw-r--r-- | common/src/main/java/at/gv/egovernment/moa/util/FileUtils.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/common/src/main/java/at/gv/egovernment/moa/util/FileUtils.java b/common/src/main/java/at/gv/egovernment/moa/util/FileUtils.java index ff22c7313..840ceebe2 100644 --- a/common/src/main/java/at/gv/egovernment/moa/util/FileUtils.java +++ b/common/src/main/java/at/gv/egovernment/moa/util/FileUtils.java @@ -133,7 +133,12 @@ public class FileUtils { keyFile = new File(url); if (!keyFile.isAbsolute()) { keyFile = new File(root, url); - newURL = keyFile.toURI().toString(); + + if (keyFile.toString().startsWith("file:")) + newURL = keyFile.toString(); + + else + newURL = keyFile.toURI().toString(); } return newURL; |