mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-15 23:04:54 +08:00
Update BaseHtml.php
This commit is contained in:
@ -244,7 +244,7 @@ class BaseHtml
|
||||
$method = 'post';
|
||||
}
|
||||
if ($request->enableCsrfValidation && !strcasecmp($method, 'post')) {
|
||||
$hiddenInputs[] = static::hiddenInput($request->csrfVar, $request->getCsrfToken());
|
||||
$hiddenInputs[] = static::hiddenInput($request->csrfParam, $request->getCsrfToken());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user