mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Improve set-cookie scriptlet
Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/3016
This commit is contained in:
parent
85955368bd
commit
9146134874
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue