Skip to content

Commit

Permalink
Merge pull request #12894 from netbox-community/fix/12822-link-encode
Browse files Browse the repository at this point in the history
Change link parsing from quote_plus to quote
  • Loading branch information
jeremystretch authored Jun 14, 2023
2 parents 55e31ef + 928a346 commit 28b939c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/extras/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def render(self, context):
text = clean_html(text, allowed_schemes)

# Sanitize link
link = urllib.parse.quote_plus(link, safe='/:?&=%+[]@#')
link = urllib.parse.quote(link, safe='/:?&=%+[]@#')

# Verify link scheme is allowed
result = urllib.parse.urlparse(link)
Expand Down

0 comments on commit 28b939c

Please sign in to comment.