Browse Source

LocalFileSystem.checkPath: Skip checking folders for paths with ..

Leonardo Jeanteur 2 weeks ago
parent
commit
d4298e814e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      hxd/fs/LocalFileSystem.hx

+ 2 - 0
hxd/fs/LocalFileSystem.hx

@@ -375,6 +375,8 @@ class LocalFileSystem implements FileSystem {
 		return true;
 	}
 	function checkPath(path: String) {
+		if (StringTools.contains(path, "../"))
+			return checkPathLeaf(path);
 		var relPath = path.substr(baseDir.length);
 		var split = relPath.split("/");
 		var count = split.length;