make decode_form_utf8 safe for arrays
parent
9d673e31e7
commit
6a0af02d3f
|
@ -65,8 +65,9 @@ sub decode_form_utf8 ($) {
|
|||
if ($] >= 5.01) {
|
||||
my $form = shift;
|
||||
foreach my $f ($form->field) {
|
||||
my @value=map { decode_utf8($_) } $form->field($f);
|
||||
$form->field(name => $f,
|
||||
value => decode_utf8($form->field($f)),
|
||||
value => \@value,
|
||||
force => 1,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue