From 8548b804f49a5e84a64b7caf2457daf1a83f834b Mon Sep 17 00:00:00 2001 From: "ruth@bywatersolutions.com" Date: Wed, 30 Mar 2011 11:11:51 -0500 Subject: [PATCH] Bug 5305: CCL query, then resort, loses reults. If you did a CCL query, then attempted resort, you would get the advanced-search page, because of wonky URL escaping of the q= clause. This patch fixes that. Signed-off-by: Liz Rea Signed-off-by: Chris Cormack --- catalogue/search.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index b1a0b4fe1d..17cbdccf94 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -468,10 +468,9 @@ my $scan_index_to_use; for my $this_cgi ( split('&',$query_cgi) ) { next unless $this_cgi; - $this_cgi =~ m/(.*=)(.*)/; + $this_cgi =~ m/(.?)=(.*)/; my $input_name = $1; my $input_value = $2; - $input_name =~ s/=$//; push @query_inputs, { input_name => $input_name, input_value => $input_value }; if ($input_name eq 'idx') { $scan_index_to_use = $input_value; # unless $scan_index_to_use; -- 2.39.5