FIX wrong extension

This commit is contained in:
Regis Houssin 2019-05-27 11:43:06 +02:00
parent c1242f409b
commit 3df6f0f6c3

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|bat|cmd|wsk|exe|dmg)$/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;
} }