Add a few more cookie names (#3907)

This commit is contained in:
Fanboynz 2023-11-13 06:51:58 +13:00 committed by GitHub
parent d24b2d8165
commit 32fb93c525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -3417,6 +3417,7 @@ function setCookie(
'true', 't', 'false', 'f',
'y', 'n',
'yes', 'no',
'necessary', 'required',
];
if ( validValues.includes(value.toLowerCase()) === false ) {
if ( /^\d+$/.test(value) === false ) { return; }