From 270b0142ec5a98e84ecb5beaf1a020130ab9e013 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 22 Oct 2010 14:13:16 +0000 Subject: [PATCH] ignore and if written any other way than AND git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@1351 07558da8-63fa-0310-ba24-9fe276d99e06 --- vhost/webpac2.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vhost/webpac2.cgi b/vhost/webpac2.cgi index 9cf686f..fd76b65 100755 --- a/vhost/webpac2.cgi +++ b/vhost/webpac2.cgi @@ -235,7 +235,7 @@ if ( my $search = param('search') ) { $whitespace = " AND " if $whitespace; # don't return -* &* and other non-word characters - return '' if $template =~ m/^\W\*$/; + return '' if $template =~ m/^\W\*$/ || $template =~ m/\band\b/i; return $whitespace . -- 2.20.1