diff --git a/common_functions.php b/common_functions.php index 6bf4eac8072..63e2860bd12 100644 --- a/common_functions.php +++ b/common_functions.php @@ -4382,7 +4382,7 @@ function FlattenText($sTextToFlatten, $bDecodeHTMLEntities=false, $sCharset='UTF } elseif ($sCharset=='UTF-8') { - $sNicetext = preg_replace('/[\x0a\x0b\x0c\x0d\x85\x2028\x2029]/', ' ', $sNicetext); + $sNicetext = preg_replace('/[\x0a\x0b\x0c\x0d\x85\x{2028}\x{2029}]/u', ' ', $sNicetext); $sNicetext = str_replace(array("\n","\r"),array('',''), $sNicetext); } else