From cf40f33fc6c8d2bd995e3e1e0842e371cc5c20f3 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Thu, 25 Jan 2024 12:44:20 +0100 Subject: [PATCH] prevent returning html entities in sanitizeProblemChars helper --- application/helpers/hlp_common_helper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/helpers/hlp_common_helper.php b/application/helpers/hlp_common_helper.php index 707d055ea..3e682e56c 100644 --- a/application/helpers/hlp_common_helper.php +++ b/application/helpers/hlp_common_helper.php @@ -356,7 +356,8 @@ function sanitizeProblemChars($str) 'ss' => '/ß/' ); - return preg_replace($acentos, array_keys($acentos), htmlentities($str, ENT_NOQUOTES | ENT_HTML5, $enc)); + $tmp = preg_replace($acentos, array_keys($acentos), htmlentities($str, ENT_NOQUOTES | ENT_HTML5, $enc)); + return html_entity_decode($tmp, ENT_NOQUOTES | ENT_HTML5, $enc); } /**