diff --git a/api/funkwhale_api/common/utils.py b/api/funkwhale_api/common/utils.py index 0863488f5..f0d4b1970 100644 --- a/api/funkwhale_api/common/utils.py +++ b/api/funkwhale_api/common/utils.py @@ -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 diff --git a/changes/changelog.d/2023.bugfix b/changes/changelog.d/2023.bugfix new file mode 100644 index 000000000..f139fd55d --- /dev/null +++ b/changes/changelog.d/2023.bugfix @@ -0,0 +1 @@ +Fixed an issue which caused links in Markdown forms to not render correctly. (#2023)