From a5cc1e1fd8a40eee3b18d9b0c2d01ed95a5db795 Mon Sep 17 00:00:00 2001 From: Pavel Golovin Date: Fri, 22 Apr 2022 19:57:09 +0300 Subject: [PATCH] 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 --- src/Symfony/Component/Form/NativeRequestHandler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Symfony/Component/Form/NativeRequestHandler.php b/src/Symfony/Component/Form/NativeRequestHandler.php index 6b18df44a165d..b9d0c879caae4 100644 --- a/src/Symfony/Component/Form/NativeRequestHandler.php +++ b/src/Symfony/Component/Form/NativeRequestHandler.php @@ -198,6 +198,8 @@ private static function fixPhpFilesArray($data) return $data; } + // Remove extra key added by PHP 8.1. + unset($data['full_path']); $keys = array_keys($data); sort($keys); 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