Skip to content

Commit

Permalink
Fix CustomLinks url encode to exclude '=%'
Browse files Browse the repository at this point in the history
  • Loading branch information
x64x6a committed Apr 26, 2023
1 parent f867cb3 commit 032d4e1
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 032d4e1

Please sign in to comment.