From: Jeremias Maerki Date: Mon, 24 Oct 2005 20:06:28 +0000 (+0000) Subject: Resurrecting URL validation. Thanks, Andreas, I didn't get it at first. Added a comment. X-Git-Tag: fop-0_90-alpha1~116 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=40c631389fa18976ff22adfd5bd230594c0dcca2;p=xmlgraphics-fop.git 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 --- 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);