X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=vhost%2Fwebpac2.cgi;h=fd76b657b4f95a9c989e24be91b19ed7cc75a209;hb=1e618af27ffe592637a78d9942cbefb2afffe2ae;hp=1a678c9159586fb674dd6b250e73c8b84fb8c807;hpb=448c48c2b0a67381e169eac82ab8a1ee13e2bba7;p=webpac2 diff --git a/vhost/webpac2.cgi b/vhost/webpac2.cgi index 1a678c9..fd76b65 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\*$/ || $template =~ m/\band\b/i; + return $whitespace . $attr . '="' . $template . '"';