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:
parent
9433dc52ab
commit
d51b393fdb
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue
Block a user