diff --git a/htdocs/core/ajax/ajaxdirpreview.php b/htdocs/core/ajax/ajaxdirpreview.php index b18e4eec3ed..7d4ed81e772 100644 --- a/htdocs/core/ajax/ajaxdirpreview.php +++ b/htdocs/core/ajax/ajaxdirpreview.php @@ -39,7 +39,7 @@ if (! isset($mode) || $mode != 'noajax') // For ajax call require_once(DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php'); require_once(DOL_DOCUMENT_ROOT."/ecm/class/ecmdirectory.class.php"); - $action=GETPOST("action"); + $action=GETPOST("action"); $file=urldecode(GETPOST('file')); $section=GETPOST("section"); $module=GETPOST("module"); @@ -108,9 +108,11 @@ if (preg_match('/\.\./',$upload_dir) || preg_match('/[<>|]/',$upload_dir)) if (! isset($mode) || $mode != 'noajax') { - // Ajout directives pour resoudre bug IE + // Ajout directives pour resoudre bug IE header('Cache-Control: Public, must-revalidate'); header('Pragma: public'); + + top_httphead(); } $type='directory'; diff --git a/htdocs/core/ajax/ajaxdirtree.php b/htdocs/core/ajax/ajaxdirtree.php index d50b8217984..b33161a0d55 100644 --- a/htdocs/core/ajax/ajaxdirtree.php +++ b/htdocs/core/ajax/ajaxdirtree.php @@ -72,6 +72,8 @@ if ($modulepart == 'ecm') * View */ +top_httphead(); + $userstatic=new User($db); $form=new Form($db); $ecmdirstatic = new EcmDirectory($db);