1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-22 18:32:45 +01:00

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

View File

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