mirror of
https://github.com/webmin/webmin.git
synced 2026-09-16 02:20:39 +01:00
Disallow multiple null-separate parameter values
This commit is contained in:
@@ -480,6 +480,7 @@ foreach my $a (@{$cmd->{'args'}}) {
|
||||
if ($rv eq '' && $a->{'must'} && $a->{'type'} != 7) {
|
||||
&error(&text('run_emust', $a->{'desc'}));
|
||||
}
|
||||
$rv =~ /\0/ && &error($text{'run_ezero'});
|
||||
$ENV{$n} = $rv;
|
||||
$env .= "$n=".quotemeta($rv)."\n";
|
||||
$export .= " $n";
|
||||
|
||||
@@ -95,6 +95,7 @@ run_ecmduser=User '$1' to run command as does not exist
|
||||
run_eopt=Invalid option selected
|
||||
run_eupload=No file to upload selected
|
||||
run_emust=Missing value for parameter '$1'
|
||||
run_ezero=Multiple values for parameters are not allowed
|
||||
run_timeout=Command failed to complete before $1 second timeout.
|
||||
run_failed=Command failed with exit status $1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user