diff --git a/htdocs/document.php b/htdocs/document.php index 1bb4ce285e8..d4d2b5fb909 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -157,7 +157,8 @@ $type = 'application/octet-stream'; // By default if (GETPOST('type', 'alpha')) $type = GETPOST('type', 'alpha'); else $type = dol_mimetype($original_file); // Security: Force to octet-stream if file is a dangerous file. For example when it is a .noexe file -if (!dolIsAllowedForPreview($original_file)) { +// We do not force if file is a javascript to be able to get js from website module with