mirror of
https://github.com/webmin/webmin.git
synced 2026-08-05 23:40:43 +01:00
Prevent space between command and comment from being included in the command
This commit is contained in:
@@ -1471,7 +1471,7 @@ Given a cron job with a # comment after the command, sets the comment field
|
||||
sub convert_comment
|
||||
{
|
||||
local ($job) = @_;
|
||||
if ($job->{'command'} =~ /^(.*)\s*#([^#]*)$/) {
|
||||
if ($job->{'command'} =~ /^(.*\S)\s*#([^#]*)$/) {
|
||||
$job->{'command'} = $1;
|
||||
$job->{'comment'} = $2;
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user