From 40c631389fa18976ff22adfd5bd230594c0dcca2 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Mon, 24 Oct 2005 20:06:28 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/apps/FOUserAgent.java | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5