summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2015-01-02 15:20:31 +0100
committerBenny Baumann <BenBE@geshi.org>2015-01-02 15:20:31 +0100
commitae1040f52ee32e3ccab718722f705db1703b51c0 (patch)
treecd8b4909f7ae41a3e97d46cb63994a4ecbeffba7
parent1db86a2a1c741bf2a9679aa8862e43722194869e (diff)
downloadcacert-devel-ae1040f52ee32e3ccab718722f705db1703b51c0.tar.gz
cacert-devel-ae1040f52ee32e3ccab718722f705db1703b51c0.tar.xz
cacert-devel-ae1040f52ee32e3ccab718722f705db1703b51c0.zip
bug 1354: Avoid double-encoding of entities
-rw-r--r--includes/general.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/general.php b/includes/general.php
index 17b449b..d35313b 100644
--- a/includes/general.php
+++ b/includes/general.php
@@ -729,7 +729,7 @@
function sanitizeHTML($input)
{
- return htmlentities(strip_tags($input), ENT_QUOTES, 'ISO-8859-1');
+ return htmlentities(strip_tags($input), ENT_QUOTES | ENT_SUBSTITUTE, 'ISO-8859-1', false);
//In case of problems, please use the following line again:
//return htmlentities(strip_tags(utf8_decode($input)), ENT_QUOTES);
//return htmlspecialchars(strip_tags($input));