From 9a3d435a14f9e9a5b3f88aee26c53d14e27050e4 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 Content-Type: text/plain; charset="utf-8" --- 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