From 06ce1379030a7711c70ecfd73cd454d4ee795696 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Thu, 12 Jun 2025 01:57:35 +0300 Subject: [PATCH] Fix to consider path separator as config init may never be run --- web-lib-funcs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index 4df2adc22..458e41d33 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -2126,7 +2126,7 @@ if ($_[0] =~ /^\// || $_[0] =~ /^[a-z]:[\\\/]/i) { else { # Check each directory in the path my %donedir; - foreach my $d (split($path_separator, $ENV{'PATH'})) { + foreach my $d (split($path_separator || ":", $ENV{'PATH'})) { next if ($donedir{$d}++); $d =~ s/$slash$// if ($d ne $slash); my $t = &translate_filename("$d/$_[0]");