Improve `set-cookie` scriptlet

Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3016
This commit is contained in:
Raymond Hill 2024-03-15 12:29:22 -04:00
parent 85955368bd
commit 9146134874
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -3725,7 +3725,7 @@ function setCookie(
if ( validValues.includes(unquoted) === false ) {
if ( /^\d+$/.test(unquoted) === false ) { return; }
const n = parseInt(value, 10);
if ( n > 15 ) { return; }
if ( n > 32767 ) { return; }
}
const done = setCookieFn(