Skip to content

Commit

Permalink
fixup! Avoid HTML tags in plain text part of notification emails
Browse files Browse the repository at this point in the history
  • Loading branch information
FestplattenSchnitzel committed Feb 18, 2024
1 parent 21d027e commit 9e077c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ rules:
message: |
Don't use `<a>` tags in a mail template.
Use the mode-aware `render_link` macro instead.
Please do not forget to add {{ link.render_link_list(mode) }} at end of the email.
Please do not forget to add {{ link.render_link_list() }} at end of the email.
fix: >
{{ link.render_link("$TEXT", "$HREF", mode) }}
{{ link.render_link("$TEXT", "$HREF") }}
severity: ERROR
languages: [ html ]
paths:
Expand Down

0 comments on commit 9e077c8

Please sign in to comment.