mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-08 00:47:55 +08:00
Fixes #1297: CSRF not generated on error pages
This commit is contained in:
@ -69,7 +69,7 @@ class ErrorAction extends Action
|
||||
|
||||
public function run()
|
||||
{
|
||||
if (!($exception = Yii::$app->getErrorHandler()->exception)) {
|
||||
if (($exception = Yii::$app->exception) === null) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user