X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FCGI%2FEditConfig.pm;fp=lib%2FBackupPC%2FCGI%2FEditConfig.pm;h=4811f4e374d0235f1d7065e7c0723304b89b1637;hp=2e734db3a64ae7a02269d60124193c9286e52f45;hb=3f3d4f4adbd990e15969d9cbc5e99e89e613e502;hpb=c2b072c9ad558447fb73fedf0cad170214b7d80e diff --git a/lib/BackupPC/CGI/EditConfig.pm b/lib/BackupPC/CGI/EditConfig.pm index 2e734db..4811f4e 100644 --- a/lib/BackupPC/CGI/EditConfig.pm +++ b/lib/BackupPC/CGI/EditConfig.pm @@ -1466,6 +1466,8 @@ sub fieldInputParse } else { $$value = decode_utf8($In{"v_zZ_$varName"}); $$value =~ s/\r\n/\n/g; + # remove leading space from exec paths + $$value =~ s/^\s+// if ( $type->{type} eq "execPath" ); } $$value = undef if ( $type->{undefIfEmpty} && $$value eq "" ); }