mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 13:58:55 +08:00
Merge branch 'request-params-refactoring' of github.com:cebe/yii2 into cebe-request-params-refactoring
Conflicts: framework/CHANGELOG.md
This commit is contained in:
@ -237,7 +237,7 @@ class BaseHtml
|
||||
if ($request instanceof Request) {
|
||||
if (strcasecmp($method, 'get') && strcasecmp($method, 'post')) {
|
||||
// simulate PUT, DELETE, etc. via POST
|
||||
$hiddenInputs[] = static::hiddenInput($request->restVar, $method);
|
||||
$hiddenInputs[] = static::hiddenInput($request->methodVar, $method);
|
||||
$method = 'post';
|
||||
}
|
||||
if ($request->enableCsrfValidation && !strcasecmp($method, 'post')) {
|
||||
|
||||
Reference in New Issue
Block a user