diff --git a/htdocs/document.php b/htdocs/document.php index c4ddba8cca4..0fa3f3d4d8f 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -78,7 +78,6 @@ else $type=dol_mimetype($original_file); // Define attachment (attachment=true to force choice popup 'open'/'save as') $attachment = true; -if (preg_match('/\.txt$/i',$original_file)) $attachment = false; if (preg_match('/\.(html|htm)$/i',$original_file)) $attachment = false; if (isset($_GET["attachment"])) $attachment = GETPOST("attachment")?true:false; if (! empty($conf->global->MAIN_DISABLE_FORCE_SAVEAS)) $attachment=false;