mirror of
https://github.com/webmin/webmin.git
synced 2026-05-29 17:30:28 +01:00
Merge branch 'master' of github.com:webmin/webmin
This commit is contained in:
@@ -26,8 +26,8 @@ unless (opendir ( DIR, $cwd )) {
|
||||
for $path (@allowed_paths) {
|
||||
my $slashed = $path;
|
||||
$slashed .= "/" if ($slashed !~ /\/$/);
|
||||
push @tmp_list, grep { $slashed =~ /^$_\// ||
|
||||
$_ =~ /$slashed/ } @list;
|
||||
push @tmp_list, grep { $slashed =~ /^\Q$_\E\// ||
|
||||
$_ =~ /\Q$slashed\E/ } @list;
|
||||
}
|
||||
# Remove duplicates
|
||||
my %hash = map { $_, 1 } @tmp_list;
|
||||
|
||||
Reference in New Issue
Block a user