From 3648ef28d7d8694f2eb328d46bb465e5c2865c7f Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Tue, 15 Sep 2026 13:16:36 +0200 Subject: [PATCH] Fix deanonymizing emails with multiple dots (#6559) --- src/pretix/static/pretixbase/js/deanonymize_email.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pretix/static/pretixbase/js/deanonymize_email.js b/src/pretix/static/pretixbase/js/deanonymize_email.js index 9e7a25748a..93917bab2d 100644 --- a/src/pretix/static/pretixbase/js/deanonymize_email.js +++ b/src/pretix/static/pretixbase/js/deanonymize_email.js @@ -1,7 +1,7 @@ document.addEventListener('DOMContentLoaded', function () { document.querySelectorAll('a[href^="mailto:"]').forEach(function (link) { // Replace [at] with @ and the [dot] with . in both the href and the displayed text (if needed) - link.href = link.href.replace('[at]', '@').replace('[dot]', '.') - link.textContent = link.textContent.replace('[at]', '@').replace('[dot]', '.') + link.href = link.href.replace('[at]', '@').replaceAll('[dot]', '.') + link.textContent = link.textContent.replace('[at]', '@').replaceAll('[dot]', '.') }) })