Fix to test if under directory correctly

This commit is contained in:
Ilia Ross
2025-02-10 14:09:26 +02:00
parent bec3f87712
commit 615838be9e

View File

@@ -505,7 +505,7 @@ if ($file && -r $file && &foreign_check("virtual-server")) {
my $conf;
my $filedir = $file;
$filedir =~ s/\/[^\/]+$//;
my @conf = grep { &is_under_directory($_->{'dir'}, $filedir) }
my @conf = grep { &is_under_directory($filedir, $_->{'dir'}) }
&virtual_server::list_php_fpm_configs();
if (@conf) {
$conf = &virtual_server::get_php_fpm_config(