Skip to content

Commit

Permalink
Merge pull request #19971 from terabytesoftw/remove-deprecated-contan…
Browse files Browse the repository at this point in the history
…ts-request

Remove deprecated constants `CSRF_MASK_LENGTH`.
  • Loading branch information
bizley authored Sep 23, 2023
2 parents 3f19873 + dc2ef34 commit 21cc6ad
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions framework/web/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 21cc6ad

Please sign in to comment.