From dc2ef34f947934dfe8796cba6feec8e6df8f5719 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Fri, 22 Sep 2023 18:42:02 -0300 Subject: [PATCH] Remove deprecated constants `CSRF_MASK_LENGTH`. --- framework/web/Request.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/framework/web/Request.php b/framework/web/Request.php index d87489ce389..a4e86e4e4ae 100644 --- a/framework/web/Request.php +++ b/framework/web/Request.php @@ -94,11 +94,6 @@ class Request extends \yii\base\Request * The name of the HTTP header for sending CSRF token. */ const CSRF_HEADER = 'X-CSRF-Token'; - /** - * The length of the CSRF token mask. - * @deprecated since 2.0.12. The mask length is now equal to the token length. - */ - const CSRF_MASK_LENGTH = 8; /** * @var bool whether to enable CSRF (Cross-Site Request Forgery) validation. Defaults to true.