X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FFilter.pm;h=7119ed13e113a5ca84b05d0c6831a8e1e4b83a61;hb=refs%2Fheads%2Fstaging;hp=bf19719fd41d9fc3ab7df1635ccf486c1a8df7eb;hpb=1935ba236a7ef4999bceb00b6faf28038f3b052e;p=spider.git diff --git a/perl/Filter.pm b/perl/Filter.pm index bf19719f..7119ed13 100644 --- a/perl/Filter.pm +++ b/perl/Filter.pm @@ -416,7 +416,8 @@ sub parse # check the line for non legal characters dbg("Filter::parse line: '$line'") if isdbg('filter'); - return ('ill', $dxchan->msg('e19')) if $line !~ /{.*}/ && $line =~ /[^\s\w,_\.:\-\*\/\(\)\$!]/; + my @ch = $line =~ m|([^\s\w,_\.:\/\-\*\(\)\$!])|g; + return ('ill', $dxchan->msg('e19', join(' ', @ch))) if $line !~ /{.*}/ && @ch; $line = lc $line;