From 427310a77df8043c4b894f7be307a4913bd0e2e0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 9 Oct 2008 15:18:13 +0000 Subject: [PATCH] Change to support different page code in HTML output --- htdocs/document.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/document.php b/htdocs/document.php index 2e54d2435e1..562445688a0 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -60,6 +60,8 @@ require_once(DOL_DOCUMENT_ROOT.'/lib/files.lib.php'); // C'est un wrapper, donc header vierge function llxHeader() { } +// Default encoding for HTTP output if no encoding can be found for file to download +//$encoding='ISO-8859-1'; $action = $_GET["action"]; $original_file = urldecode($_GET["file"]); @@ -91,7 +93,6 @@ $original_file = str_replace("../","/", "$original_file"); $refname=basename(dirname($original_file)."/"); $accessallowed=0; -$encoding='ISO-8859-1'; // By default $sqlprotectagainstexternals=''; if ($modulepart) {