/var/www/html/LimeSurvey-develop/framework/web/CHttpRequest.php(1377)
1365 1366 if (!empty($maskedUserToken) && $cookies->contains($this->csrfTokenName)) 1367 { 1368 $securityManager=Yii::app()->getSecurityManager(); 1369 $maskedCookieToken=$cookies->itemAt($this->csrfTokenName)->value; 1370 $cookieToken=$securityManager->unmaskToken($maskedCookieToken); 1371 $userToken=$securityManager->unmaskToken($maskedUserToken); 1372 $valid=$cookieToken===$userToken; 1373 } 1374 else 1375 $valid = false; 1376 if (!$valid) 1377 throw new CHttpException(400,Yii::t('yii','The CSRF token could not be verified.')); 1378 } 1379 } 1380 1381 1382 /** 1383 * Returns the version of the HTTP protocol used by client. 1384 * 1385 * @return string the version of the HTTP protocol. 1386 * @since 1.1.16 1387 */ 1388 public function getHttpVersion() 1389 {
#0 |
+
–
/var/www/html/LimeSurvey-develop/framework/base/CComponent.php(561): CHttpRequest->validateCsrfToken(CEvent) 556 // an array: 0 - object, 1 - method name 557 list($object,$method)=$handler; 558 if(is_string($object)) // static method call 559 call_user_func($handler,$event); 560 elseif(method_exists($object,$method)) 561 $object->$method($event); 562 else 563 throw new CException(Yii::t('yii','Event "{class}.{event}" is attached with an invalid handler "{handler}".', 564 array('{class}'=>get_class($this), '{event}'=>$name, '{handler}'=>$handler[1]))); 565 } 566 else // PHP 5.3: anonymous function |
#1 |
+
–
/var/www/html/LimeSurvey-develop/framework/base/CApplication.php(212): CComponent->raiseEvent("onbeginrequest", CEvent) 207 * Raised right BEFORE the application processes the request. 208 * @param CEvent $event the event parameter 209 */ 210 public function onBeginRequest($event) 211 { 212 $this->raiseEvent('onBeginRequest',$event); 213 } 214 215 /** 216 * Raised right AFTER the application processes the request. 217 * @param CEvent $event the event parameter |
#2 |
+
–
/var/www/html/LimeSurvey-develop/framework/base/CApplication.php(183): CApplication->onBeginRequest(CEvent) 178 * Remember to call the parent implementation so that static application components are loaded. 179 */ 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } |
#3 |
+
–
/var/www/html/LimeSurvey-develop/index.php(194): CApplication->run() 189 require_once APPPATH . 'core/LSYii_Application' . EXT; 190 191 $config = require_once(APPPATH . 'config/internal' . EXT); 192 193 Yii::$enableIncludePath = false; 194 Yii::createApplication('LSYii_Application', $config)->run(); 195 196 /* End of file index.php */ 197 /* Location: ./index.php */ |