From 2d5f433eebe4c6bb420fa15b1bc4f3943d8be63f Mon Sep 17 00:00:00 2001 From: Thomas de Jesus Date: Mon, 9 Oct 2023 10:04:53 -0500 Subject: [PATCH] Update PHPWS_Text.php Allow output to display accents from non English languages. --- src-phpws-legacy/src/PHPWS_Text.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-phpws-legacy/src/PHPWS_Text.php b/src-phpws-legacy/src/PHPWS_Text.php index 5bf6012ab..b14417082 100644 --- a/src-phpws-legacy/src/PHPWS_Text.php +++ b/src-phpws-legacy/src/PHPWS_Text.php @@ -375,7 +375,8 @@ public static function parseOutput($text, $decode = ENCODE_PARSED_TEXT, $t->useBreaker($use_breaker); $t->useAnchor($fix_anchors); $text = $t->getPrint(); - $text = filter_var($text, FILTER_UNSAFE_RAW, FILTER_FLAG_STRIP_HIGH); +// $text = filter_var($text, FILTER_UNSAFE_RAW, FILTER_FLAG_STRIP_HIGH); + $text = filter_var($text, FILTER_UNSAFE_RAW, FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_BACKTICK); //Allows for accents from non English languages. parseInput should filter out unwanted characters regarding SQL injection. return $text; }