* Added some performance improvements to BackupPC::Xfer::RsyncFileIO
[BackupPC.git] / lib / BackupPC / CGI / EditConfig.pm
index 2e734db..4811f4e 100644 (file)
@@ -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 "" );
     }