[Koha-patches] [PATCH] (bug #2998) fix search sorting containing "="
Nahuel ANGELINETTI
nahuel.angelinetti at biblibre.com
Tue Mar 3 17:48:15 CET 2009
just modify the way to parse the actual args
---
opac/opac-search.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opac/opac-search.pl b/opac/opac-search.pl
index 459d018..b9a3af2 100755
--- a/opac/opac-search.pl
+++ b/opac/opac-search.pl
@@ -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;
--
1.5.6.3
More information about the Koha-patches
mailing list