Skip to content

Custom Link Model - semicolon (;) is sanitized during rendering #12665

@o4sis

Description

@o4sis

NetBox version

v3.51

Python version

3.8

Steps to Reproduce

  1. Customization -> Custom Links -> Entry -> Link URL
  2. ; changed to %03B when following link.

Expected Behavior

Render ';' instead of %3B.

Observed Behavior

; is changed to %3B.

Sanitization on the custom link rendering added in 89fa546 prevents '';" in URL. Adding ';' into allowed list resolves issue.

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

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions