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

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

Return to bug 11944