Skip to content

Commit

Permalink
Add "on" and "off" values to set-cookie (#3898)
Browse files Browse the repository at this point in the history
* Add "on" and "off" values to set-cookie

Used on praxisplan.at.

uBlockOrigin/uAssets@0cd4612

* Update scriptlets.js
  • Loading branch information
peace2000 authored Oct 21, 2023
1 parent 41d91ed commit eb66129
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/resources/scriptlets.js
Original file line number Diff line number Diff line change
Expand Up @@ -3388,6 +3388,7 @@ function setCookie(
'ok',
'accept', 'reject',
'allow', 'deny',
'on', 'off',
];
if ( validValues.includes(value.toLowerCase()) === false ) {
if ( /^\d+$/.test(value) === false ) { return; }
Expand Down

0 comments on commit eb66129

Please sign in to comment.