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
1 changed files with 1 additions and 0 deletions

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; }