Skip to content

Commit

Permalink
Fixes netbox-community#12355: Exclude additional characters from url …
Browse files Browse the repository at this point in the history
…encode
  • Loading branch information
x64x6a committed Apr 26, 2023
1 parent f867cb3 commit 4355085
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 @@ -279,7 +279,7 @@ def render(self, context):
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)
Expand Down

0 comments on commit 4355085

Please sign in to comment.