From c78b905811ed4869a4a69f60272e1b7787026f6e Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 28 Mar 2013 12:51:26 +0100 Subject: [PATCH] Bug 6554: Followup for preferences.pl Decodes searchfield. Test plan: Look for e accent in preferences. You should no longer see converted chars. Signed-off-by: Bernardo Gonzalez Kriegel Works ok, no errors. Signed-off-by: Jared Camins-Esakov --- admin/preferences.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/preferences.pl b/admin/preferences.pl index e24657e0cc..2182591f29 100755 --- a/admin/preferences.pl +++ b/admin/preferences.pl @@ -21,6 +21,7 @@ use strict; use warnings; use CGI; + use C4::Auth; use C4::Context; use C4::Koha; @@ -296,7 +297,8 @@ if ( $op eq 'save' ) { my @TABS; if ( $op eq 'search' ) { - my $searchfield = $input->param( 'searchfield' ); + my $searchfield = $input->param('searchfield'); + utf8::decode($searchfield); $searchfield =~ s/\p{IsC}//g; $searchfield =~ s/\s+/ /; -- 2.39.5