mirror of
https://github.com/webmin/webmin.git
synced 2026-03-11 05:12:03 +00:00
Fix fsdump stored extra option validation on save (#6)
This commit is contained in:
@@ -75,6 +75,10 @@ else {
|
||||
$dump->{'email'} = $in{'email_def'} ? '*' : $in{'email'};
|
||||
$dump->{'subject'} = $in{'subject_def'} ? undef : $in{'subject'};
|
||||
if ($access{'extra'}) {
|
||||
if (defined($in{'extra'}) &&
|
||||
$in{'extra'} =~ /[;&|`\$<>\r\n\0]/) {
|
||||
&error("Invalid extra command-line parameters");
|
||||
}
|
||||
$dump->{'extra'} = $in{'extra'};
|
||||
}
|
||||
if ($access{'cmds'}) {
|
||||
|
||||
Reference in New Issue
Block a user