Merge pull request #11258 from hregis/develop_security

FIX add Windows and Mac executable
This commit is contained in:
Laurent Destailleur 2019-05-29 13:52:19 +02:00 committed by GitHub
commit ab73d8a6fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8275,7 +8275,7 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u
*/ */
function isAFileWithExecutableContent($filename) function isAFileWithExecutableContent($filename)
{ {
if (preg_match('/\.(htm|html|js|php|phtml|pl|py|cgi|ksh|sh|bash)$/i', $filename)) if (preg_match('/\.(htm|html|js|php|phtml|pl|py|cgi|ksh|sh|bash|bat|cmd|wpk|exe|dmg)$/i', $filename))
{ {
return true; return true;
} }