From 8c281d87092718828a905c0773b9a706adc3d8e8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 18 Dec 2010 03:27:01 +0000 Subject: [PATCH] Fix: Donation receipt was not correctly encoded --- htdocs/document.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/document.php b/htdocs/document.php index 0f45bf96eaa..40fb6045391 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -33,6 +33,7 @@ define('NOTOKENRENEWAL',1); // Disables token renewal // Do not use urldecode here ($_GET and $_REQUEST are already decoded by PHP). +$encoding = 'UTF-8'; $action = isset($_GET["action"])?$_GET["action"]:''; $original_file = isset($_GET["file"])?$_GET["file"]:''; $modulepart = isset($_GET["modulepart"])?$_GET["modulepart"]:''; @@ -52,6 +53,11 @@ if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); // C'est un wrapper, donc header vierge function llxHeader() { } + +/* + * View + */ + require("./main.inc.php"); // Load $user and permissions require_once(DOL_DOCUMENT_ROOT.'/lib/files.lib.php');