summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2014-01-28 22:28:13 +0100
committerBenny Baumann <BenBE@geshi.org>2014-01-28 22:28:13 +0100
commit11dba48df200eb49a585aa390ac9c03643a39706 (patch)
treee4457ac34b47c2e957ba1314c9427ab40d314c29
parent3213ce91971fd5976a1f31b0c24a822c01591911 (diff)
downloadcacert-devel-bug-1243.tar.gz
cacert-devel-bug-1243.tar.xz
cacert-devel-bug-1243.zip
bug 1243: Fix missing constants for HTML escapingbug-1243
-rw-r--r--includes/general.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/general.php b/includes/general.php
index d89c0e6..cfd76d7 100644
--- a/includes/general.php
+++ b/includes/general.php
@@ -28,6 +28,12 @@
// if($_SESSION['profile']['id'] > 0)
// session_regenerate_id();
+ //cf. http://stackoverflow.com/a/14532168
+ if(!defined('ENT_HTML401')) define('ENT_HTML401', 0);
+ if(!defined('ENT_XML1')) define('ENT_XML1', 16);
+ if(!defined('ENT_XHTML')) define('ENT_XHTML', 32);
+ if(!defined('ENT_HTML5')) define('ENT_HTML5', (32|16));
+
$pageLoadTime_Start = microtime(true);
$junk = array(_("Face to Face Meeting"), _("Trusted Third Parties"), _("Thawte Points Transfer"), _("Administrative Increase"),