From 94caa125576aa29cb703aa7b7eb7a873daa0d519 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 15 Aug 2024 09:01:58 +0200 Subject: [PATCH] make sure gettext returns the strings html encoded --- application/hooks/gettext/vendor/php-gettext/gettext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/hooks/gettext/vendor/php-gettext/gettext.php b/application/hooks/gettext/vendor/php-gettext/gettext.php index abde1b7f7..22fae16dd 100644 --- a/application/hooks/gettext/vendor/php-gettext/gettext.php +++ b/application/hooks/gettext/vendor/php-gettext/gettext.php @@ -211,7 +211,7 @@ function _encode($text) if ($source_encoding != $target_encoding) $text = mb_convert_encoding($text, $target_encoding, $source_encoding); } - return $text; + return htmlentities($text); } // Custom implementation of the standard gettext related functions