Skip to content

Commit

Permalink
In utils/html, convert ALLOWED_PROTOCOLS to list before appending ["t…
Browse files Browse the repository at this point in the history
…el"]; Fixes #2054 due to Bleach version change
  • Loading branch information
molokov committed Dec 22, 2023
1 parent c98e2d8 commit e7f7491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mezzanine/utils/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def escape(html):
strip=True,
strip_comments=False,
css_sanitizer=css_sanitizer,
protocols=ALLOWED_PROTOCOLS + ["tel"],
protocols=list(ALLOWED_PROTOCOLS) + ["tel"],
)


Expand Down

0 comments on commit e7f7491

Please sign in to comment.