Версия Yii 1.0.0.
--- framework/web/CHttpRequest.php.orig 2009-01-07 16:49:42.000000000 +0300 +++ framework/web/CHttpRequest.php 2009-01-07 16:50:39.000000000 +0300 @@ -485,7 +485,8 @@ { if($this->_csrfToken===null) { - if(($this->_csrfToken=$this->getCsrfTokenFromCookie())===null) + $cookie=$this->getCookies()->itemAt($this->csrfTokenName); + if(!$cookie || ($this->_csrfToken=$cookie->value)==null) { $cookie=$this->createCsrfCookie(); $this->_csrfToken=$cookie->value;
Дискуссия