From eb93c7aac3aced011cc158fb1e89ef5140546ab4 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Sun, 20 Sep 2026 22:47:26 +0200 Subject: [PATCH] Fix to collect searches across allowed directories https://github.com/webmin/webmin/commit/290ab1aaea53ad1580212b4b9354a3278fc64bb0#r201223944 --- filemin/search.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filemin/search.cgi b/filemin/search.cgi index 5ffe741a7..53bbf06ed 100755 --- a/filemin/search.cgi +++ b/filemin/search.cgi @@ -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); }