Fixes #21698: Fix validation of custom field URLs with single-digit ports #108

Closed
opened 2026-04-05 16:21:43 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 3/20/2026

Fixes: #21698

Update the custom field URL validation regex to allow single-digit ports by changing \d{2,5} to \d{1,5}. This fixes rejection of valid URLs such as https://100.65.18.1:9/ and brings NetBox's behavior in line with Django's default URL validation.

*Originally created by @pheus on 3/20/2026* ### Fixes: #21698 Update the custom field URL validation regex to allow single-digit ports by changing `\d{2,5}` to `\d{1,5}`. This fixes rejection of valid URLs such as `https://100.65.18.1:9/` and brings NetBox's behavior in line with Django's default URL validation.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#108