mirror of https://github.com/gorhill/uBlock.git
Improve `set-cookie` scriptlet
Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/3016
This commit is contained in:
parent
85955368bd
commit
9146134874
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue