diff options
Diffstat (limited to 'config-lib/src/main/java/com/yahoo/config/PathNode.java')
-rw-r--r-- | config-lib/src/main/java/com/yahoo/config/PathNode.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/config-lib/src/main/java/com/yahoo/config/PathNode.java b/config-lib/src/main/java/com/yahoo/config/PathNode.java index 2c43f89af3f..1c4f724a7ed 100644 --- a/config-lib/src/main/java/com/yahoo/config/PathNode.java +++ b/config-lib/src/main/java/com/yahoo/config/PathNode.java @@ -23,13 +23,7 @@ public class PathNode extends LeafNode<Path> { public PathNode(FileReference fileReference) { super(true); - Path value = Path.of(fileReference.value()).normalize(); - if (value.isAbsolute()) - throw new IllegalArgumentException("path must be relative"); - if (value.startsWith("..")) - throw new IllegalArgumentException("'..' not allowed in path"); - - this.value = value; + this.value = new File(fileReference.value()).toPath(); this.fileReference = fileReference; } |