Stats improvements

This commit is contained in:
Sascha Leib
2025-10-27 21:07:05 +01:00
parent 2c8aaf6cac
commit 6b6cd387da
15 changed files with 221 additions and 114 deletions

View File

@@ -178,7 +178,8 @@ const $BMCaptcha = {
const hash = $BMCaptcha.digest.hash(dat.join('|'));
// set the cookie:
document.cookie = "DWConfirm=" + hash + ';path=/;';
document.cookie = "DWConfirm=" + encodeURIComponent(hash) + ';path=/;hostOnly;session;sameSite=strict;'
+ (document.location.protocol === 'https:' ? 'secure;' : '');
} catch (err) {
console.error(err);