mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 20:49:08 +01:00
need to remove /e modifier, when using preg_replace_callback
This commit is contained in:
parent
f3dc471729
commit
541e6f9bb5
@ -358,7 +358,7 @@ class preferences
|
||||
if($data === false)
|
||||
{
|
||||
// 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].'";';
|
||||
}, $str));
|
||||
|
Loading…
Reference in New Issue
Block a user