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 <lrea@nekls.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 8548b804f4)
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
parent
a4d48140b6
commit
5a03b00094
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue