Skip to content

Commit 90b44c8

Browse files
authored
Modify processing of uploaded files to be compatible with PHP 8.1
Remove full_path from keys before check Keep logic the same as in src/Symfony/Component/HttpFoundation/FileBag.php
1 parent 414cff4 commit 90b44c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/Form/NativeRequestHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ private static function fixPhpFilesArray($data)
198198
return $data;
199199
}
200200

201+
// Remove extra key added by PHP 8.1.
202+
unset($data['full_path']);
201203
$keys = array_keys($data);
202204
sort($keys);
203205

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy