Skip to content

Commit 3feef68

Browse files
mentalstringTybaze
authored andcommitted
remove full_path from uploads added on php8.1
1 parent 958f421 commit 3feef68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/request/sfWebRequest.class.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,9 @@ static public function convertFileInformation(array $taintedFiles)
872872
*/
873873
static protected function fixPhpFilesArray(array $data)
874874
{
875+
// remove full_path added on php8.1
876+
unset($data['full_path']);
877+
875878
$fileKeys = array('error', 'name', 'size', 'tmp_name', 'type');
876879
$keys = array_keys($data);
877880
sort($keys);

0 commit comments

Comments
 (0)