View | Details | Raw Unified | Return to bug 11944
Collapse All | Expand All

(-)a/catalogue/search.pl (-2 / +2 lines)
Lines 414-420 if ($indexes[0] && (!$indexes[1] || $params->{'scan'})) { Link Here
414
}
414
}
415
415
416
# an operand can be a single term, a phrase, or a complete ccl query
416
# an operand can be a single term, a phrase, or a complete ccl query
417
my @operands = map uri_unescape($_), $cgi->param('q');
417
my @operands = map Encode::decode_utf8( uri_unescape($_) ), $cgi->param('q');
418
418
419
# limits are use to limit to results to a pre-defined category such as branch or language
419
# limits are use to limit to results to a pre-defined category such as branch or language
420
my @limits = map uri_unescape($_), $cgi->param('limit');
420
my @limits = map uri_unescape($_), $cgi->param('limit');
Lines 498-504 for my $this_cgi ( split('&',$query_cgi) ) { Link Here
498
    $this_cgi =~ m/(.*?)=(.*)/;
498
    $this_cgi =~ m/(.*?)=(.*)/;
499
    my $input_name = $1;
499
    my $input_name = $1;
500
    my $input_value = $2;
500
    my $input_value = $2;
501
    push @query_inputs, { input_name => $input_name, input_value => $input_value };
501
    push @query_inputs, { input_name => $input_name, input_value => Encode::decode_utf8( uri_unescape( $input_value ) ) };
502
    if ($input_name eq 'idx') {
502
    if ($input_name eq 'idx') {
503
        $scan_index_to_use = $input_value; # unless $scan_index_to_use;
503
        $scan_index_to_use = $input_value; # unless $scan_index_to_use;
504
    }
504
    }
(-)a/opac/opac-search.pl (-2 / +1 lines)
Lines 477-483 sub _input_cgi_parse { Link Here
477
    for my $this_cgi ( split('&',shift) ) {
477
    for my $this_cgi ( split('&',shift) ) {
478
        next unless $this_cgi;
478
        next unless $this_cgi;
479
        $this_cgi =~ /(.*?)=(.*)/;
479
        $this_cgi =~ /(.*?)=(.*)/;
480
        push @elements, { input_name => $1, input_value => uri_unescape($2) };
480
        push @elements, { input_name => $1, input_value => Encode::decode_utf8( uri_unescape($2) ) };
481
    }
481
    }
482
    return @elements;
482
    return @elements;
483
}
483
}
484
- 

Return to bug 11944