1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

Add additional set-cookie names (#3902)

This commit is contained in:
Fanboynz 2023-10-30 04:01:32 +13:00 committed by GitHub
parent 9433dc52ab
commit d51b393fdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3379,9 +3379,11 @@ function setCookie(
'true', 'false',
'yes', 'y', 'no', 'n',
'ok',
'accept', 'reject',
'allow', 'deny',
'accept', 'reject', 'rejected',
'allow', 'allowed', 'deny', 'disallow',
'on', 'off',
'accepted', 'notaccepted',
'enable', 'enabled', 'disable', 'disabled',
];
if ( validValues.includes(value.toLowerCase()) === false ) {
if ( /^\d+$/.test(value) === false ) { return; }