From 9146134874050ee50a11e25f31034a2416cf5988 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 15 Mar 2024 12:29:22 -0400 Subject: [PATCH] Improve `set-cookie` scriptlet Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/3016 --- assets/resources/scriptlets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/resources/scriptlets.js b/assets/resources/scriptlets.js index cf19274e7..b50c7d61b 100644 --- a/assets/resources/scriptlets.js +++ b/assets/resources/scriptlets.js @@ -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(