(bug #2998) fix search sorting containing "="
authorNahuel ANGELINETTI <nahuel.angelinetti@biblibre.com>
Tue, 3 Mar 2009 16:48:15 +0000 (17:48 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 4 Mar 2009 11:48:09 +0000 (12:48 +0100)
just modify the way to parse the actual args

opac/opac-search.pl

index 459d018..b9a3af2 100755 (executable)
@@ -334,7 +334,7 @@ sub _input_cgi_parse ($) {
     my @elements;
     for my $this_cgi ( split('&',shift) ) {
         next unless $this_cgi;
-        $this_cgi =~ /(.*)=(.*)/;
+        $this_cgi =~ /(.*?)=(.*)/;
         push @elements, { input_name => $1, input_value => $2 };
     }
     return @elements;