Skip to content

Commit

Permalink
Escape anything that's not plaintext
Browse files Browse the repository at this point in the history
  • Loading branch information
TheByronHimes committed Jul 22, 2024
1 parent 4a8b1fd commit 36e8232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ns/core/notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _build_email_subtype(
a dictionary of values.
"""
# Escape values exposed to the email in case they've been maliciously crafted
if template_type == EmailTemplateType.HTML:
if template_type != EmailTemplateType.PLAINTEXT:
for k, v in email_vars.items():
if isinstance(v, list):
email_vars[k] = ", ".join(
Expand Down

0 comments on commit 36e8232

Please sign in to comment.