mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-15 10:20:47 +00:00
Fix undesired relativization of intended-absolute paths
* ConfigPath.java
special check for path starting '/'; if so, ignore 'base'
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user