From 471f0a4647d458a817f92a0b76218b7b640111f4 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 Content-Type: text/plain; charset="utf-8" Decodes searchfield. Test plan: Look for e accent in preferences. You should no longer see converted chars. --- admin/preferences.pl | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/admin/preferences.pl b/admin/preferences.pl index e24657e..2182591 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+/ /; -- 1.7.7.6