From 2eec617c9204d143055339da898846cf8baa1bfa Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Mon, 8 Jun 2009 11:10:07 +0200 Subject: [PATCH] (bug #3304) fix notices trigger with diacritics in categorycodes This just utf8::encode the $key if needed to permit categorycodes with diacritics. Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- tools/overduerules.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/overduerules.pl b/tools/overduerules.pl index c0d6e5058a..ec50ff853e 100755 --- a/tools/overduerules.pl +++ b/tools/overduerules.pl @@ -43,6 +43,11 @@ sub blank_row { for my $rp (@rule_params) { for my $n (1 .. 3) { my $key = "${rp}${n}-$category_code"; + + if (utf8::is_utf8($key)) { + utf8::encode($key); + } + my $value = $input->param($key); if ($value) { return 0; -- 2.39.5