Add "on" and "off" values to set-cookie (#3898)

* Add "on" and "off" values to set-cookie

Used on praxisplan.at.

0cd4612e18

* Update scriptlets.js
This commit is contained in:
peace2000 2023-10-21 03:43:52 +03:00 committed by GitHub
parent 41d91ed080
commit eb66129fbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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; }