aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2006-03-01 10:34:14 +0000
committerJeremias Maerki <jeremias@apache.org>2006-03-01 10:34:14 +0000
commit424d538254afb06646869ed528e1b9d448db5b99 (patch)
treeff53cbe339438a9b4232324f56cdec1459709d13 /src
parent17f7dbd53db372bdbd9e6155e2bd03836b9ffbe7 (diff)
downloadxmlgraphics-fop-424d538254afb06646869ed528e1b9d448db5b99.tar.gz
xmlgraphics-fop-424d538254afb06646869ed528e1b9d448db5b99.zip
Fix bug in the construction of a base URL when it's specified as a file system path.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@381978 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/apps/FOUserAgent.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/apps/FOUserAgent.java b/src/java/org/apache/fop/apps/FOUserAgent.java
index 203f7f951..a10692890 100644
--- a/src/java/org/apache/fop/apps/FOUserAgent.java
+++ b/src/java/org/apache/fop/apps/FOUserAgent.java
@@ -434,10 +434,7 @@ public class FOUserAgent {
if (cfgBaseDir != null) {
File dir = new File(cfgBaseDir);
if (dir.isDirectory()) {
- cfgBaseDir = "file://" + dir.getCanonicalPath()
- + System.getProperty("file.separator");
- cfgBaseDir = cfgBaseDir.replace(
- System.getProperty("file.separator").charAt(0), '/');
+ cfgBaseDir = dir.toURL().toExternalForm();
} else {
//The next statement is for validation only
new URL(cfgBaseDir);