fix(api): Add href to protected attributes

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2312>
environments/review-docs-1664-292dbg/deployments/16542
Ciarán Ainsworth 2022-12-29 17:25:30 +00:00
rodzic af6b5c3843
commit 101b1b6a23
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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

Wyświetl plik

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