12665 add semicolon to link sanitation safe string

This commit is contained in:
Arthur
2023-08-09 12:28:35 +07:00
committed by Jeremy Stretch
parent 9b1406a1a7
commit dcdb4d27ec
+1 -1
View File
@@ -285,7 +285,7 @@ class CustomLink(CloningMixin, ExportTemplatesMixin, ChangeLoggedModel):
text = clean_html(text, allowed_schemes) text = clean_html(text, allowed_schemes)
# Sanitize link # Sanitize link
link = urllib.parse.quote(link, safe='/:?&=%+[]@#,') link = urllib.parse.quote(link, safe='/:?&=%+[]@#,;')
# Verify link scheme is allowed # Verify link scheme is allowed
result = urllib.parse.urlparse(link) result = urllib.parse.urlparse(link)