fix input selection with operators
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 26 May 2009 15:00:57 +0000 (15:00 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 26 May 2009 15:00:57 +0000 (15:00 +0000)
git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@1192 07558da8-63fa-0310-ba24-9fe276d99e06

vhost/webpac2.cgi

index 72d4059..f09b0e4 100755 (executable)
@@ -220,7 +220,7 @@ if ( my $search = param('search') ) {
                push @search, $v;
        
                my @only_input = param('only_input');
                push @search, $v;
        
                my @only_input = param('only_input');
-               push @search, '(' . join(') OR (', map { "input=$_" } @only_input) . ')' if @only_input;
+               push @search, '((' . join(') OR (', map { "input=\"$_\"" } @only_input) . '))' if @only_input;
        } else {
                push @search, "all=\"$search\"";
        }
        } else {
                push @search, "all=\"$search\"";
        }