Skip to content

Commit

Permalink
Bug 6554: Followup for preferences.pl
Browse files Browse the repository at this point in the history
Decodes searchfield.

Test plan:
Look for e accent in preferences. You should no longer see converted chars.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Works ok, no errors.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
  • Loading branch information
mderooy authored and jcamins committed Apr 1, 2013
1 parent b2b003a commit c78b905
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin/preferences.pl
Expand Up @@ -21,6 +21,7 @@
use warnings; use warnings;


use CGI; use CGI;

use C4::Auth; use C4::Auth;
use C4::Context; use C4::Context;
use C4::Koha; use C4::Koha;
Expand Down Expand Up @@ -296,7 +297,8 @@ sub matches {
my @TABS; my @TABS;


if ( $op eq 'search' ) { if ( $op eq 'search' ) {
my $searchfield = $input->param( 'searchfield' ); my $searchfield = $input->param('searchfield');
utf8::decode($searchfield);


$searchfield =~ s/\p{IsC}//g; $searchfield =~ s/\p{IsC}//g;
$searchfield =~ s/\s+/ /; $searchfield =~ s/\s+/ /;
Expand Down

0 comments on commit c78b905

Please sign in to comment.