Fix to collect searches across allowed directories

290ab1aaea (r201223944)
This commit is contained in:
Ilia Ross
2026-09-20 22:47:26 +02:00
parent 290ab1aaea
commit eb93c7aac3

View File

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