fix(api): Add href to protected attributes

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2312>
This commit is contained in:
Ciarán Ainsworth 2022-12-29 17:25:30 +00:00
parent af6b5c3843
commit 101b1b6a23
2 changed files with 2 additions and 1 deletions

View File

@ -308,7 +308,7 @@ HTMl_CLEANER = bleach.sanitizer.Cleaner(strip=True, tags=SAFE_TAGS)
HTML_PERMISSIVE_CLEANER = bleach.sanitizer.Cleaner(
strip=True,
tags=SAFE_TAGS + ["h1", "h2", "h3", "h4", "h5", "h6", "div", "section", "article"],
attributes=["class", "rel", "alt", "title"],
attributes=["class", "rel", "alt", "title", "href"],
)
# support for additional tlds

View File

@ -0,0 +1 @@
Fixed an issue which caused links in Markdown forms to not render correctly. (#2023)