Add 'deny' as valid value for set-cookie (#3897)

AG added it as well.

6f36f888bb
This commit is contained in:
peace2000 2023-07-22 13:31:27 +03:00 committed by GitHub
parent 0eccb6ba44
commit da8fe2f950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2901,7 +2901,7 @@ function setCookie(
'yes', 'y', 'no', 'n', 'yes', 'y', 'no', 'n',
'ok', 'ok',
'accept', 'reject', 'accept', 'reject',
'allow', 'allow', 'deny',
]; ];
if ( validValues.includes(value.toLowerCase()) === false ) { if ( validValues.includes(value.toLowerCase()) === false ) {
if ( /^\d+$/.test(value) === false ) { return; } if ( /^\d+$/.test(value) === false ) { return; }