Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6ccea476

Von Martin Helmling vor mehr als 9 Jahren hinzugefügt

  • ID 6ccea47689a953faf3cc611e2014a8a34c360a0a
  • Vorgänger 6ebec7f9
  • Nachfolger 0b9fc4e6

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.

Unterschiede anzeigen:

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