From c1242f409b034a47b10a678ad4615e2dc4cfead1 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 27 May 2019 11:30:59 +0200 Subject: [PATCH] FIX add Windows and Mac executable --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index bce137d1e11..e50e0874faa 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -8275,7 +8275,7 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u */ 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|wsk|exe|dmg)$/i', $filename)) { return true; }