fix: improve mailto BCC encoding

Use URI.encode_www_form() instead of URI.encode() for mailto query parameters.
This is the safer choice for query parameter encoding.

Add comment about mailto URL length limits that vary by email client.
This commit is contained in:
Moritz 2025-12-16 14:51:42 +01:00
parent fb91f748c2
commit be6ea56860
2 changed files with 5 additions and 1 deletions

View file

@ -16,7 +16,7 @@
<.button
class="secondary"
id="open-email-btn"
href={"mailto:?bcc=" <> URI.encode(@mailto_bcc)}
href={"mailto:?bcc=" <> @mailto_bcc}
disabled={not @any_selected?}
aria-label={gettext("Open email program with BCC recipients")}
>