mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-16 15:21:13 +08:00
Update BaseHtml.php
This commit is contained in:
@ -244,7 +244,7 @@ class BaseHtml
|
|||||||
$method = 'post';
|
$method = 'post';
|
||||||
}
|
}
|
||||||
if ($request->enableCsrfValidation && !strcasecmp($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