From c8dd4565bf4da6cb70f2fca0e7b1748112401d95 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 28 Mar 2013 12:51:26 +0100 Subject: [PATCH] 6554 Followup for preferences.pl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" Decodes searchfield. Test plan: Look for é in preferences. You should no longer see: é --- admin/preferences.pl | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/admin/preferences.pl b/admin/preferences.pl index e24657e..d592657 100755 --- a/admin/preferences.pl +++ b/admin/preferences.pl @@ -21,6 +21,8 @@ use strict; use warnings; use CGI; +use URI::Escape; + use C4::Auth; use C4::Context; use C4::Koha; @@ -296,7 +298,8 @@ if ( $op eq 'save' ) { my @TABS; if ( $op eq 'search' ) { - my $searchfield = $input->param( 'searchfield' ); + my $searchfield = uri_unescape($input->param('searchfield')); + utf8::decode($searchfield); $searchfield =~ s/\p{IsC}//g; $searchfield =~ s/\s+/ /; -- 1.7.7.6