Skip to content

Commit 18b341c

Browse files
Adding additional PHP extensions to shouldBlockPhpUpload Function (#44512)
* Adding additional php extensions to shouldBlockPhpUpload function * Update ValidatesAttributes.php Co-authored-by: Taylor Otwell <[email protected]>
1 parent 8590f5a commit 18b341c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Validation/Concerns/ValidatesAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ protected function shouldBlockPhpUpload($value, $parameters)
13961396
}
13971397

13981398
$phpExtensions = [
1399-
'php', 'php3', 'php4', 'php5', 'phtml', 'phar',
1399+
'php', 'php3', 'php4', 'php5', 'php7', 'php8', 'phtml', 'phar',
14001400
];
14011401

14021402
return ($value instanceof UploadedFile)

0 commit comments

Comments
 (0)