mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Fix to distinguish command from actual file https://github.com/authentic-theme/authentic-theme/issues/1485
This commit is contained in:
@ -308,7 +308,9 @@ if ($file !~ /^\// && $file !~ /\|\s*$/) {
|
||||
$file = "$uinfo[7]/$file";
|
||||
}
|
||||
}
|
||||
open(FILE, "<".$file);
|
||||
my $h;
|
||||
$h = "<" if ($file =~ /^\// && $file !~ /\|\s*$/);
|
||||
open(FILE, "$h".$file);
|
||||
while(<FILE>) {
|
||||
s/\r|\n//g;
|
||||
next if (/^#/);
|
||||
|
Reference in New Issue
Block a user