Skip to content

Commit

Permalink
Issue matrix-org#2860 : Update mailer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
krish-bista committed Jan 23, 2023
1 parent 80d4406 commit c7b6ef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/push/mailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"img": ["src"],
}
# When bleach release a version with this option, we can specify schemes
# ALLOWED_SCHEMES = ["http", "https", "ftp", "mailto"]
ALLOWED_SCHEMES = ["http", "https", "ftp", "mailto"]


class Mailer:
Expand Down Expand Up @@ -890,7 +890,7 @@ def safe_markup(raw_html: str) -> Markup:
tags=ALLOWED_TAGS,
attributes=ALLOWED_ATTRS,
# bleach master has this, but it isn't released yet
# protocols=ALLOWED_SCHEMES,
protocols=ALLOWED_SCHEMES,
strip=True,
)
)
Expand Down

0 comments on commit c7b6ef1

Please sign in to comment.