From a357da3ea2f6d925c4b6ca4aa89085aa270adc0d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 22 Jul 2014 11:13:39 +0000 Subject: [PATCH] allow all php serialized values, to fix integer timestamps in async table --- phpgwapi/inc/common_functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/common_functions.inc.php b/phpgwapi/inc/common_functions.inc.php index 08c68c1bfc..4a78dd2efd 100755 --- a/phpgwapi/inc/common_functions.inc.php +++ b/phpgwapi/inc/common_functions.inc.php @@ -1601,8 +1601,8 @@ if (isset($_SERVER['SCRIPT_FILENAME']) && $_SERVER['SCRIPT_FILENAME'] == __FILE_ */ function json_php_unserialize($str, $allow_not_serialized=false) { - if (($str[0] == 'a' && $str[1] == ':' || $str === 'N;') && - ($arr = php_safe_unserialize($str)) !== false) + if ((in_array($str[0], array('a', 'i', 's', 'b', 'O', 'C')) && $str[1] == ':' || $str === 'N;') && + ($arr = php_safe_unserialize($str)) !== false || $str === 'b:0;') { return $arr; }