Page MenuHomeVyOS Platform

validator: Use native URL validator instead of regex-based validator
Closed, ResolvedPublicBUG

Description

Replace regex-based URL validator with native validator from vyos-utils.

The current regex validator doesn't capture all use cases, for example:

  • http:/foo.example.com (with single /) passes incorrectly
  • http://1.2.3.4.5/foo passes incorrectly
  • http://[::1]/foo (IPv6-based) fails incorrectly

Details

Version
1.4 1.5
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)