From 5a03b00094efe4bfebe57ea2addd77751ff8ce66 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 (cherry picked from commit 8548b804f49a5e84a64b7caf2457daf1a83f834b) Signed-off-by: Chris Nighswonger --- catalogue/search.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index 426bf2ea2f..a073b16e92 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -452,10 +452,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