Loading sources/caches.php +7 −1 Original line number Diff line number Diff line Loading @@ -823,7 +823,13 @@ function _get_cache_entries($dets, $special_cache_flags = null) $cache_row['the_value'] = $ob; } else { $cache_row['the_value'] = unserialize($cache_row['the_value']); $cache_row['the_value'] = @unserialize($cache_row['the_value']); if ($cache_row['the_value'] === false) { // Corrupt data $cache[$sz] = null; $rets[] = null; continue; } } } Loading sources/hooks/systems/cron/block_caching.php +4 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,10 @@ class Hook_cron_block_caching $requests = $GLOBALS['SITE_DB']->query_select('cron_caching_requests', array('*'), $where); foreach ($requests as $request) { $codename = $request['c_codename']; $map = unserialize($request['c_map']); $map = @unserialize($request['c_map']); if (!is_array($map)) { $map = array(); } list($object, $new_security_scope) = do_block_hunt_file($codename, $map); Loading sources/persistent_caching/eaccelerator.php +5 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,11 @@ class Persistent_caching_eacceleratorcache if ((!is_null($min_cache_date)) && ($data[0] < $min_cache_date)) { return null; } return unserialize($data[1]); $ret = @unserialize($data[1]); if ($ret === false) { return null; } return $ret; } /** Loading sources/persistent_caching/filesystem.php +3 −0 Original line number Diff line number Diff line Loading @@ -94,6 +94,9 @@ class Persistent_caching_filecache } $ret = @unserialize($contents); if ($ret === false) { $ret = null; } flock($myfile, LOCK_UN); fclose($myfile); Loading sources/persistent_caching/memcache.php +4 −1 Original line number Diff line number Diff line Loading @@ -67,7 +67,10 @@ class Persistent_caching_memcache if ($_data === false) { return null; } $data = unserialize($_data); $data = @unserialize($_data); if ($data === false) { return null; } if ((!is_null($min_cache_date)) && ($data[0] < $min_cache_date)) { return null; } Loading Loading
sources/caches.php +7 −1 Original line number Diff line number Diff line Loading @@ -823,7 +823,13 @@ function _get_cache_entries($dets, $special_cache_flags = null) $cache_row['the_value'] = $ob; } else { $cache_row['the_value'] = unserialize($cache_row['the_value']); $cache_row['the_value'] = @unserialize($cache_row['the_value']); if ($cache_row['the_value'] === false) { // Corrupt data $cache[$sz] = null; $rets[] = null; continue; } } } Loading
sources/hooks/systems/cron/block_caching.php +4 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,10 @@ class Hook_cron_block_caching $requests = $GLOBALS['SITE_DB']->query_select('cron_caching_requests', array('*'), $where); foreach ($requests as $request) { $codename = $request['c_codename']; $map = unserialize($request['c_map']); $map = @unserialize($request['c_map']); if (!is_array($map)) { $map = array(); } list($object, $new_security_scope) = do_block_hunt_file($codename, $map); Loading
sources/persistent_caching/eaccelerator.php +5 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,11 @@ class Persistent_caching_eacceleratorcache if ((!is_null($min_cache_date)) && ($data[0] < $min_cache_date)) { return null; } return unserialize($data[1]); $ret = @unserialize($data[1]); if ($ret === false) { return null; } return $ret; } /** Loading
sources/persistent_caching/filesystem.php +3 −0 Original line number Diff line number Diff line Loading @@ -94,6 +94,9 @@ class Persistent_caching_filecache } $ret = @unserialize($contents); if ($ret === false) { $ret = null; } flock($myfile, LOCK_UN); fclose($myfile); Loading
sources/persistent_caching/memcache.php +4 −1 Original line number Diff line number Diff line Loading @@ -67,7 +67,10 @@ class Persistent_caching_memcache if ($_data === false) { return null; } $data = unserialize($_data); $data = @unserialize($_data); if ($data === false) { return null; } if ((!is_null($min_cache_date)) && ($data[0] < $min_cache_date)) { return null; } Loading