From d9c99cddd56908d5466956c50b240c9fe4dc98e5 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Mon, 18 Jul 2011 09:01:53 +0000 Subject: missed a file in r3018, sorry --- framework/Web/UI/TCachePageStatePersister.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/framework/Web/UI/TCachePageStatePersister.php b/framework/Web/UI/TCachePageStatePersister.php index 62c2bc60..0377175a 100644 --- a/framework/Web/UI/TCachePageStatePersister.php +++ b/framework/Web/UI/TCachePageStatePersister.php @@ -4,7 +4,7 @@ * * @author Qiang Xue * @link http://www.pradosoft.com/ - * @copyright Copyright © 2005-2011 PradoSoft + * @copyright Copyright © 2005-2011 PradoSoft * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Web.UI @@ -173,9 +173,8 @@ class TCachePageStatePersister extends TComponent implements IPageStatePersister * Saves state in cache. * @param mixed state to be stored */ - public function save($state) + public function save($data) { - $data=serialize($state); $timestamp=(string)microtime(true); $key=$this->calculateKey($timestamp); $this->getCache()->add($key,$data,$this->_timeout); @@ -193,7 +192,7 @@ class TCachePageStatePersister extends TComponent implements IPageStatePersister { $key=$this->calculateKey($timestamp); if(($data=$this->getCache()->get($key))!==false) - return unserialize($data); + return $data; } throw new THttpException(400,'cachepagestatepersister_pagestate_corrupted'); } -- cgit v1.2.3