Shorted line

This commit is contained in:
Jamie Cameron
2026-09-27 20:09:25 -07:00
parent 0055cccfef
commit cc0f8134da

View File

@@ -41,8 +41,7 @@ else {
if (&test_allowed_paths()) {
for $path (@allowed_paths) {
my $slashed = $path;
$slashed .= "/"
if ($slashed !~ /\/$/);
$slashed .= "/" if ($slashed !~ /\/$/);
push @tmp_list,
grep { $slashed =~ /^\Q$_\E\// ||
$_ =~ /\Q$slashed\E/ } @list;