From 541e6f9bb583bdf3a6d9e82c71175c668a5534d6 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 13 Jun 2014 13:30:36 +0000 Subject: [PATCH] need to remove /e modifier, when using preg_replace_callback --- phpgwapi/inc/class.preferences.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.preferences.inc.php b/phpgwapi/inc/class.preferences.inc.php index f090548e90..8e1c9809d6 100644 --- a/phpgwapi/inc/class.preferences.inc.php +++ b/phpgwapi/inc/class.preferences.inc.php @@ -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));