mirror of
https://github.com/webmin/webmin.git
synced 2026-09-22 21:40:39 +01:00
Fix to collect searches across allowed directories
290ab1aaea (r201223944)
This commit is contained in:
@@ -29,8 +29,8 @@ if (&test_allowed_paths()) {
|
||||
foreach my $path (@allowed_paths) {
|
||||
my $slashed = $path;
|
||||
$slashed .= "/" if ($slashed !~ /\/$/);
|
||||
@alist = grep { $_ eq $path ||
|
||||
$_ =~ /^\Q$slashed\E/ } @list;
|
||||
push(@alist, grep { $_ eq $path ||
|
||||
$_ =~ /^\Q$slashed\E/ } @list);
|
||||
}
|
||||
@list = &unique(@alist);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user