Allow log paths that are variables https://www.virtualmin.com/node/38963

This commit is contained in:
Jamie Cameron
2016-03-15 21:07:06 -07:00
parent 8e2815dabe
commit 72cd4b3a4e

View File

@@ -81,7 +81,8 @@ else {
foreach my $l (@logpaths) {
$l =~ s/^\s*//;
$l =~ s/\s*$//;
$l =~ /^\/\S+$/ || &error($text{'jail_elogpath'});
$l =~ /^\/\S+$/ || $l =~ /^\%\(/ ||
&error($text{'jail_elogpath'});
}
# Validate various counters