Fix undesired relativization of intended-absolute paths

* ConfigPath.java
    special check for path starting '/'; if so, ignore 'base'
This commit is contained in:
gojomo committed 2009-07-09 22:46:26 +00:00
1 parent 4251e5311f
commit 8e5b46250e
1 file changed
+3 -3
@@ -96,9 +96,9 @@ public class ConfigPath implements Serializable {
}
public File getFile() {
return (base == null)
? new File(path)
: new File(base.getFile(), path);
return (base == null || path.startsWith("/"))
? new File(path)
: new File(base.getFile(), path);
}
public ConfigPath merge(ConfigPath previous) {