X-Git-Url: http://git.rot13.org/?p=webpac2;a=blobdiff_plain;f=vhost%2Fwebpac2.cgi;h=9cf686fb6f2573a374db3c457f336e920cc7b13a;hp=1a678c9159586fb674dd6b250e73c8b84fb8c807;hb=ff256971c4d3f44b2dd77d3513ec72f74a56909d;hpb=45c6f9061183218ee64de38b516e608fcf20c5b1 diff --git a/vhost/webpac2.cgi b/vhost/webpac2.cgi index 1a678c9..9cf686f 100755 --- a/vhost/webpac2.cgi +++ b/vhost/webpac2.cgi @@ -234,6 +234,9 @@ if ( my $search = param('search') ) { $template =~ s{Q}{$v}; $whitespace = " AND " if $whitespace; + # don't return -* &* and other non-word characters + return '' if $template =~ m/^\W\*$/; + return $whitespace . $attr . '="' . $template . '"';