mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Prevent incompatible option setting https://github.com/webmin/webmin/issues/1971
This commit is contained in:
@@ -779,11 +779,23 @@ local(@po, $po, @rv);
|
||||
if ($in{'Options_def'}) { return ( [ ] ); }
|
||||
@po = ("ExecCGI", "FollowSymLinks", "Includes", "IncludesNOEXEC",
|
||||
"Indexes", "MultiViews", "SymLinksIfOwnerMatch");
|
||||
my $abscount = 0;
|
||||
my $pluscount = 0;
|
||||
foreach $po (@po) {
|
||||
if ($in{$po} == 1) { push(@rv, $po); }
|
||||
elsif ($in{$po} == 2) { push(@rv, "+$po"); }
|
||||
elsif ($in{$po} == 3) { push(@rv, "-$po"); }
|
||||
if ($in{$po} == 1) {
|
||||
push(@rv, $po);
|
||||
$abscount++;
|
||||
}
|
||||
elsif ($in{$po} == 2) {
|
||||
push(@rv, "+$po");
|
||||
$pluscount++;
|
||||
}
|
||||
elsif ($in{$po} == 3) {
|
||||
push(@rv, "-$po");
|
||||
$pluscount++;
|
||||
}
|
||||
}
|
||||
$abscount && $pluscount && &error($text{'core_eoptionsboth'});
|
||||
return @rv ? ( [ join(' ', @rv) ] ) : ( [ "None" ] );
|
||||
}
|
||||
|
||||
|
||||
@@ -501,6 +501,7 @@ core_actmod=Active modules
|
||||
core_option=Option
|
||||
core_setdir=Set for directory
|
||||
core_merge=Merge with parent
|
||||
core_eoptionsboth=Options must be either all set for a directory or merged with the parent directory, but not both
|
||||
core_users=Only these users
|
||||
core_groups=Only these groups
|
||||
core_allusers=All valid users
|
||||
|
||||
Reference in New Issue
Block a user