Revision 6ccea476
Von Martin Helmling vor mehr als 9 Jahren hinzugefügt
SL/Request.pm | ||
---|---|---|
251 | 251 |
# Workaround for a bug: converting $from->[$idx] directly |
252 | 252 |
# leads to 'undef'. I don't know why. Converting a copy works, |
253 | 253 |
# though. |
254 |
$to->[$idx] = $iconv->convert("" . $from->[$idx]); |
|
254 |
$to->[$idx] = $iconv->convert("" . $from->[$idx]) if defined $from->[$idx] && !defined $to->[$idx];
|
|
255 | 255 |
} else { |
256 | 256 |
$to->[$idx] ||= {} if 'HASH' eq ref $from->[$idx]; |
257 | 257 |
$to->[$idx] ||= [] if 'ARRAY' eq ref $from->[$idx]; |
Auch abrufbar als: Unified diff
Request: Dateiupload in form arrays[] gefixt
_recode_recursively hatte die Weiche für Dateiupload nur bei
Hashzugriff, und hat im Array-Kontext die Daten überschrieben.