Request: Fehler in recode_recursively
authorSven Schöling <s.schoeling@linet-services.de>
Thu, 12 Jan 2012 12:29:31 +0000 (13:29 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 12 Jan 2012 12:29:31 +0000 (13:29 +0100)
Fix zu Bug 1774.

SL/Request.pm

index d4f2d88..dab5745 100644 (file)
@@ -165,7 +165,7 @@ sub _recode_recursively {
         # Workaround for a bug: converting $from->[$idx] directly
         # leads to 'undef'. I don't know why. Converting a copy works,
         # though.
-        $from->[$idx] = $iconv->convert("" . $from->[$idx]);
+        $to->[$idx] = $iconv->convert("" . $from->[$idx]);
       } else {
         $to->[$idx] ||= {} if 'HASH'  eq ref $from->[$idx];
         $to->[$idx] ||= [] if 'ARRAY' eq ref $from->[$idx];