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 /common/src/main/java/at | |
parent | e822a65b487de2891eacc19b717e744a1af0c87d (diff) | |
download | moa-id-spss-MOA-ID-PROXY-2.0.1.tar.gz moa-id-spss-MOA-ID-PROXY-2.0.1.tar.bz2 moa-id-spss-MOA-ID-PROXY-2.0.1.zip |
fix problem with relative file URLsMOA-ID-PROXY-2.0.1
Diffstat (limited to 'common/src/main/java/at')
-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; |