From 4e0598a6c2228f5ee6fc42d4c5647a85459b8c66 Mon Sep 17 00:00:00 2001 From: Wytze van der Raay Date: Fri, 17 Oct 2014 12:54:20 +0000 Subject: [PATCH] Fix for https://bugs.cacert.org/view.php?id=1301 sanitizeHTML function converts input which contains non-ascii characters to an empty string --- includes/general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/general.php b/includes/general.php index 854aab4..26a369e 100644 --- a/includes/general.php +++ b/includes/general.php @@ -664,7 +664,7 @@ function sanitizeHTML($input) { - return htmlentities(strip_tags($input), ENT_QUOTES); + return htmlentities(strip_tags($input), ENT_QUOTES, 'ISO-8859-1'); //In case of problems, please use the following line again: //return htmlentities(strip_tags(utf8_decode($input)), ENT_QUOTES); //return htmlspecialchars(strip_tags($input));