From 92b712804327c9982fd110df1146e89a6e8ef076 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Tue, 2 Apr 2013 14:06:02 +0200 Subject: [PATCH] Bug 9951: Followup for Tools Adds decoding for Patron Cards/Patron Search and Tags (moderation). Test plan: Goto Tools. Add accent with diacritics in both areas. Check if you do not see converted characters. Signed-off-by: Chris Cormack --- patroncards/members-search.pl | 1 + tags/review.pl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/patroncards/members-search.pl b/patroncards/members-search.pl index ef7a776..8ab249b 100755 --- a/patroncards/members-search.pl +++ b/patroncards/members-search.pl @@ -34,6 +34,7 @@ my $startfrom = $cgi->param('startfrom')||1; my $resultsperpage = $cgi->param('resultsperpage')||C4::Context->preference("PatronsPerPage")||20; my $category = $cgi->param('category') || undef; my $member = $cgi->param('member') || ''; +utf8::decode($member); my $orderby = $cgi->param('orderby') || undef; my @categories=C4::Category->all; diff --git a/tags/review.pl b/tags/review.pl index 3b7a0a0..5405924 100755 --- a/tags/review.pl +++ b/tags/review.pl @@ -23,7 +23,7 @@ use warnings; use strict; use Data::Dumper; use POSIX; -use CGI; +use CGI qw/-utf8/; use CGI::Cookie; # need to check cookies before having CGI parse the POST request use C4::Auth qw(:DEFAULT check_cookie_auth); -- 1.7.10.4