Ver Fonte

Merge pull request #12894 from netbox-community/fix/12822-link-encode

Change link parsing from quote_plus to quote
Jeremy Stretch há 3 anos atrás
pai
commit
28b939c001
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      netbox/extras/models/models.py

+ 1 - 1
netbox/extras/models/models.py

@@ -285,7 +285,7 @@ class CustomLink(CloningMixin, ExportTemplatesMixin, ChangeLoggedModel):
         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)