need to remove /e modifier, when using preg_replace_callback

This commit is contained in:
Ralf Becker 2014-06-13 13:30:36 +00:00
parent f3dc471729
commit 541e6f9bb5

View File

@ -358,7 +358,7 @@ class preferences
if($data === false) if($data === false)
{ {
// manually retrieve the string lengths of the serialized array if unserialize failed // manually retrieve the string lengths of the serialized array if unserialize failed
$data = unserialize(preg_replace_callback('!s:(\d+):"(.*?)";!se', function($matches) $data = unserialize(preg_replace_callback('!s:(\d+):"(.*?)";!s', function($matches)
{ {
return 's:'.mb_strlen($matches[2],'8bit').':"'.$matches[2].'";'; return 's:'.mb_strlen($matches[2],'8bit').':"'.$matches[2].'";';
}, $str)); }, $str));