Bug 275007 . enables directory browsing

r=cls
This commit is contained in:
timeless%mozdev.org 2004-12-17 07:06:47 +00:00
parent 0bdd8b7c86
commit d14b2e7431

View File

@ -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;