[HttpFoundation] fixed request files handling

This commit is contained in:
Antoine Hérault 2010-09-10 11:22:35 +02:00 committed by Fabien Potencier
parent 63793dd62e
commit 7bd76610ca

View File

@ -895,6 +895,10 @@ class Request
*/
protected function fixPhpFilesArray($data)
{
if (!is_array($data)) {
return $data;
}
$fileKeys = array('error', 'name', 'size', 'tmp_name', 'type');
$keys = array_keys($data);
sort($keys);