From 9dc44fefafca744f5f99a9fd0d050e339360289a 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 --- 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