mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-22 03:18:00 +08:00
Fixes #1634: Use masked CSRF tokens to prevent BREACH exploits
This commit is contained in:
@ -241,7 +241,7 @@ class BaseHtml
|
||||
$method = 'post';
|
||||
}
|
||||
if ($request->enableCsrfValidation && !strcasecmp($method, 'post')) {
|
||||
$hiddenInputs[] = static::hiddenInput($request->csrfVar, $request->getCsrfToken());
|
||||
$hiddenInputs[] = static::hiddenInput($request->csrfVar, $request->getMaskedCsrfToken());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user