From 662a225c09e81e1d9297f336bb937815252f39e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 16 Jun 2009 13:13:59 +0000 Subject: [PATCH] Bugfix: _recode_recursively hat das Form Objekt nicht als Hash erkannt. Symptom: Langtexte werden nicht korrekt kodiert. --- SL/Form.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/Form.pm b/SL/Form.pm index 9a7c9e175..3075968b6 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -57,6 +57,7 @@ use SL::Template; use SL::User; use Template; use List::Util qw(first max min sum); +use List::MoreUtils qw(any); my $standard_dbh; @@ -255,7 +256,7 @@ sub _recode_recursively { $main::lxdebug->enter_sub(); my ($iconv, $param) = @_; - if (ref $param eq 'HASH') { + if (any { ref $param eq $_ } qw(Form HASH)) { foreach my $key (keys %{ $param }) { if (!ref $param->{$key}) { $param->{$key} = $iconv->convert($param->{$key}); -- 2.20.1