Skip to content

Commit

Permalink
Improve set-cookie scriptlet
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Mar 15, 2024
1 parent 8595536 commit 9146134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/resources/scriptlets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9146134

Please sign in to comment.