diff --git a/htdocs/lib/files.lib.php b/htdocs/lib/files.lib.php index eaab2dfbe33..4691c159424 100644 --- a/htdocs/lib/files.lib.php +++ b/htdocs/lib/files.lib.php @@ -205,8 +205,8 @@ function dol_mimetype($file,$default='application/octet-stream') // Scripts if (preg_match('/\.bat$/i',$file)) $mime='text/x-bat'; if (preg_match('/\.sh$/i',$file)) $mime='text/x-sh'; - if (preg_match('/\.ksh)$/i',$file)) $mime='text/x-ksh'; - if (preg_match('/\.bash)$/i',$file)) $mime='text/x-bash'; + if (preg_match('/\.ksh$/i',$file)) $mime='text/x-ksh'; + if (preg_match('/\.bash$/i',$file)) $mime='text/x-bash'; // Images if (preg_match('/\.ico$/i',$file)) $mime='image/x-icon'; if (preg_match('/\.(jpg|jpeg)$/i',$file)) $mime='image/jpeg';