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

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

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(