aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2015-09-18 12:59:35 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2015-09-18 12:59:35 +0200
commitda6ed7d6563d91a81de6c8c14a6aa65eb9ba6433 (patch)
tree89f9b1b4531feb711da073eb8cde0518d2ef1542 /common/src/main/java
parente822a65b487de2891eacc19b717e744a1af0c87d (diff)
downloadmoa-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')
-rw-r--r--common/src/main/java/at/gv/egovernment/moa/util/FileUtils.java7
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;