From: Matt S Trout Date: Tue, 4 Dec 2012 22:14:03 +0000 (+0000) Subject: expand ParamParser comment so nobody breaks it again X-Git-Tag: v0.021~25 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FWeb-Simple.git;a=commitdiff_plain;h=c62cf40ac80b302b71683630b11b6157f018ba4a expand ParamParser comment so nobody breaks it again --- diff --git a/lib/Web/Dispatch/ParamParser.pm b/lib/Web/Dispatch/ParamParser.pm index 0f403aa..3caf160 100644 --- a/lib/Web/Dispatch/ParamParser.pm +++ b/lib/Web/Dispatch/ParamParser.pm @@ -27,7 +27,8 @@ sub get_unpacked_body_from { _unpack_params($buf); } elsif (index($ct, 'multipart/form-data') >= 0) { my $p = get_unpacked_body_object_from($_[0])->param; - # forcible arrayification + # forcible arrayification (functional, $p does not belong to us, + # do NOT replace this with a side-effect ridden "simpler" version) +{ map +(ref($p->{$_}) eq 'ARRAY' ? ($_ => $p->{$_})