Fix: Donation receipt was not correctly encoded

This commit is contained in:
Laurent Destailleur 2010-12-18 03:27:01 +00:00
parent 6e54360aac
commit 8c281d8709

View File

@ -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');