Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Shnoulle committed Aug 11, 2011
1 parent 56e4233 commit 401f461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common_functions.php
Expand Up @@ -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
Expand Down

0 comments on commit 401f461

Please sign in to comment.