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

Add Accept/Reject as valid values for set-cookie scriptlet

Related discussion:
- https://github.com/uBlockOrigin/uAssets/discussions/18762
This commit is contained in:
Raymond Hill 2023-07-01 10:25:19 -04:00
parent e0b4b3d830
commit 1f57822c33
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -2795,6 +2795,7 @@ function setCookie(
'yes', 'Yes', 'y', 'Y',
'no', 'No', 'n', 'N',
'ok', 'OK',
'Accept', 'Reject',
]);
if ( validValues.has(value) === false ) {
if ( /^\d+$/.test(value) === false ) { return; }