remove leading and trailing spaces
[spider.git] / cmd / wcy.pl
index 4d0122b95e00d1a059587d880d8e530644b7ed37..58b3c40f5e3aea1be1fe395125f8722b74a0d422 100644 (file)
@@ -35,6 +35,7 @@ my $hour = (gmtime $main::systime)[2];
 my $d = int ($main::systime / 3600) * 3600 + 18 * 60; 
 
 # make a hash out of the args
+$line = unpad($line);
 my %args = map {split /\s*=\s*/} split /\s*,\s*/, lc $line;
 
 # check the ranges of each one