- Fixed rsync is case of shareName = '/'
[BackupPC.git] / bin / BackupPC_zipCreate
index c91d208..ac0c237 100755 (executable)
@@ -84,7 +84,7 @@ if ( @ARGV < 1 ) {
     exit(1);
 }
 
     exit(1);
 }
 
-if ( $opts{h} !~ /^([\w\.-]+)$/ ) {
+if ( $opts{h} !~ /^([\w\.\s-]+)$/ ) {
     print(STDERR "$0: bad host name '$opts{h}'\n");
     exit(1);
 }
     print(STDERR "$0: bad host name '$opts{h}'\n");
     exit(1);
 }