diff --git a/filter/save.cgi b/filter/save.cgi index f6f0198a9..49240ce2a 100755 --- a/filter/save.cgi +++ b/filter/save.cgi @@ -85,7 +85,9 @@ else { $filter->{'condheader'} =~ /^[a-zA-Z0-9\-]+$/ || &error($text{'save_econdheader'}); if (!$in{'condregexp'} && - $in{'condvalue'} !~ /^[a-zA-Z0-9_ ]+$/) { + $in{'condvalue'} =~ /[\^\$\.\*\+\?\|\(\)\[\]\{\}\\]/) { + # If the user didn't ask for a regexp but there are + # regexp special characters, escape them $in{'condvalue'} = quotemeta($in{'condvalue'}); } if ($in{'condmode'} == 0) {