summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
73f2498)
old check made it possible to access a directory structure outside the root
directory similar to the root directory.
# Check if the path is above the root directory
# Check if the path is above the root directory
- return if(index($path,$root) == -1);
+ return if(index($path,$root) != 0);
return if($first eq $root && $last =~ m!^(/|\\)?\.\.(/|\\)?$!);
# Create short path name
return if($first eq $root && $last =~ m!^(/|\\)?\.\.(/|\\)?$!);
# Create short path name