From 401f461dc2184cd3f11084938b7927ee5c8f2157 Mon Sep 17 00:00:00 2001 From: Denis Chenu Date: Thu, 11 Aug 2011 14:22:37 +0000 Subject: [PATCH] Fixed issue #5394. 2, 8 and 9 are removed from survey id in admin part Dev : use of UTF8 encoding in FlattenText function git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@10686 b72ed6b6-b9f8-46b5-92b4-906544132732 --- common_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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