[TASK] Add php7 to the list of known php files 83/45083/2
authorBenni Mack <benni@typo3.org>
Wed, 2 Dec 2015 12:27:26 +0000 (13:27 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Wed, 2 Dec 2015 15:03:30 +0000 (16:03 +0100)
Releases: master
Resolves: #72019
Change-Id: I60a1458bdffb5df9c177d183f1229bcba930c95a
Reviewed-on: https://review.typo3.org/45083
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php

index ad3c02d..54cbc81 100644 (file)
@@ -114,9 +114,9 @@ class SystemEnvironmentBuilder
         define('CRLF', CR . LF);
 
         // Security related constant: Default value of fileDenyPattern
-        define('FILE_DENY_PATTERN_DEFAULT', '\\.(php[3-6]?|phpsh|phtml)(\\..*)?$|^\\.htaccess$');
+        define('FILE_DENY_PATTERN_DEFAULT', '\\.(php[3-7]?|phpsh|phtml)(\\..*)?$|^\\.htaccess$');
         // Security related constant: List of file extensions that should be registered as php script file extensions
-        define('PHP_EXTENSIONS_DEFAULT', 'php,php3,php4,php5,php6,phpsh,inc,phtml');
+        define('PHP_EXTENSIONS_DEFAULT', 'php,php3,php4,php5,php6,php7,phpsh,inc,phtml');
 
         // Operating system identifier
         // Either "WIN" or empty string