]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Resurrecting URL validation. Thanks, Andreas, I didn't get it at first. Added a comment.
authorJeremias Maerki <jeremias@apache.org>
Mon, 24 Oct 2005 20:06:28 +0000 (20:06 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 24 Oct 2005 20:06:28 +0000 (20:06 +0000)
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

index 567bd531bc82f9b87ce2d645561a8ee77933ba49..bdb92eb357aeac276bf30d6611b2acae1024bb2d 100644 (file)
@@ -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);