mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
Bug 275007 . enables directory browsing
r=cls
This commit is contained in:
parent
0bdd8b7c86
commit
d14b2e7431
@ -1418,7 +1418,8 @@ sub canonpath {
|
||||
|
||||
return "" if (!defined($path) || $path eq "");
|
||||
foreach my $dir (split('/', $path)) {
|
||||
if ($dir eq "\.\.") {
|
||||
if ($dir eq '.') {
|
||||
} elsif ($dir eq '..') {
|
||||
pop @list;
|
||||
} else {
|
||||
push @list, $dir;
|
||||
|
Loading…
Reference in New Issue
Block a user