Skip to content

Commit

Permalink
Add additional set-cookie names (#3902)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanbr committed Oct 29, 2023
1 parent 9433dc5 commit d51b393
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions assets/resources/scriptlets.js
Expand Up @@ -3379,9 +3379,11 @@ function setCookie(
'true', 'false',
'yes', 'y', 'no', 'n',
'ok',
'accept', 'reject',
'allow', 'deny',
'accept', 'reject', 'rejected',
'allow', 'allowed', 'deny', 'disallow',
'on', 'off',
'accepted', 'notaccepted',
'enable', 'enabled', 'disable', 'disabled',
];
if ( validValues.includes(value.toLowerCase()) === false ) {
if ( /^\d+$/.test(value) === false ) { return; }
Expand Down

0 comments on commit d51b393

Please sign in to comment.