mirror of
https://github.com/webmin/webmin.git
synced 2026-09-28 16:30:56 +01:00
Shorted line
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user