(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 <galen.charlton@liblime.com>
This commit is contained in:
parent
ecdf595208
commit
9dc44fefaf
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue