mirror of
https://github.com/webmin/webmin.git
synced 2026-10-20 11:10:40 +01:00
Make sure variable doesn't contain a new line
This commit is contained in:
@@ -81,6 +81,8 @@ lcedit_special_reboot=when system boots
|
||||
|
||||
save_err=Failed to save cron job
|
||||
save_ecmd=You did not enter a command to execute
|
||||
save_ename=Missing or invalid environment variable name
|
||||
save_evalue=Invalid environment variable value
|
||||
save_euser=You must select a user
|
||||
save_euser2=User '$1' does not exist
|
||||
save_eallow=The user '$1' is not allowed to access cron
|
||||
|
||||
@@ -38,6 +38,9 @@ foreach $f (@files) { &lock_file($f); }
|
||||
if ($in{'name'} !~ /^\S+$/) {
|
||||
&error($text{'save_ename'});
|
||||
}
|
||||
if ($in{'value'} =~ /\r|\n/) {
|
||||
&error($text{'save_evalue'});
|
||||
}
|
||||
if (!$in{'user'}) {
|
||||
&error($text{'save_euser'});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user