Merge pull request #12358 from x64x6a/develop

Add additional characters to exclude from url encode
This commit is contained in:
Jeremy Stretch 2023-04-27 08:50:45 -04:00 committed by GitHub
commit 4a92f6867a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,7 +279,7 @@ class CustomLink(CloningMixin, ExportTemplatesMixin, WebhooksMixin, ChangeLogged
text = clean_html(text, allowed_schemes)
# Sanitize link
link = urllib.parse.quote_plus(link, safe='/:?&')
link = urllib.parse.quote_plus(link, safe='/:?&=%+[]@#')
# Verify link scheme is allowed
result = urllib.parse.urlparse(link)