diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-10-24 20:06:28 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-10-24 20:06:28 +0000 |
commit | 40c631389fa18976ff22adfd5bd230594c0dcca2 (patch) | |
tree | ed2f6b76a13da2ba0cb9d79f6b3b1d6b22290472 /src/java/org | |
parent | f8463ff055f84f34be1dd3483162daf487563786 (diff) | |
download | xmlgraphics-fop-40c631389fa18976ff22adfd5bd230594c0dcca2.tar.gz xmlgraphics-fop-40c631389fa18976ff22adfd5bd230594c0dcca2.zip |
Resurrecting URL validation. Thanks, Andreas, I didn't get it at first. Added a comment.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328149 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/fop/apps/FOUserAgent.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/apps/FOUserAgent.java b/src/java/org/apache/fop/apps/FOUserAgent.java index 567bd531b..bdb92eb35 100644 --- a/src/java/org/apache/fop/apps/FOUserAgent.java +++ b/src/java/org/apache/fop/apps/FOUserAgent.java @@ -363,6 +363,9 @@ public class FOUserAgent { + System.getProperty("file.separator"); cfgBaseDir = cfgBaseDir.replace( System.getProperty("file.separator").charAt(0), '/'); + } else { + //The next statement is for validation only + new URL(cfgBaseDir); } } setBaseURL(cfgBaseDir); |