Fix back directories

This commit is contained in:
Jamie Cameron
2025-02-10 19:13:19 -08:00
parent 615838be9e
commit c293500fd4

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($filedir, $_->{'dir'}) }
my @conf = grep { &is_under_directory($_->{'dir'}, $filedir) }
&virtual_server::list_php_fpm_configs();
if (@conf) {
$conf = &virtual_server::get_php_fpm_config(