Skip to content

Commit

Permalink
added php8 to list of filtered extensions (#35001)
Browse files Browse the repository at this point in the history
  • Loading branch information
SniperSister authored Aug 4, 2021
1 parent 572d0dd commit 2ae50ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/src/Filter/InputFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ public static function isSafeFile($file, $options = array())

// Forbidden string in extension (e.g. php matched .php, .xxx.php, .php.xxx and so on)
'forbidden_extensions' => array(
'php', 'phps', 'pht', 'phtml', 'php3', 'php4', 'php5', 'php6', 'php7', 'phar', 'inc', 'pl', 'cgi', 'fcgi', 'java', 'jar', 'py',
'php', 'phps', 'pht', 'phtml', 'php3', 'php4', 'php5', 'php6', 'php7',
'php8', 'phar', 'inc', 'pl', 'cgi', 'fcgi', 'java', 'jar', 'py',
),

// <?php tag in file contents
Expand Down

0 comments on commit 2ae50ce

Please sign in to comment.