Project

General

Profile

« Previous | Next » 

Revision e37ecea9

Added by Phil Davis over 8 years ago

Improve IPv4 address validation for services_dhcp

The input pattern that goes with Form_IpAddress by default allows for IPv4 and IPv6 valid characters. The back-end validation here is checking for IPv4 addresses, so it seems reasonable that the front-end input pattern checks might as well be restricted to the IPv4 valid characters. Unneeded setPattern have also been removed.
The exception is Gateway, where the special string "none" is allowed, so I just left the setPattern as it is (yes, it could be modified to only allow the letters "n" "o" and "e").
(cherry picked from commit eb01f06578294d13cd3450e8b882d627b1528a35)

  • added
  • modified
  • copied
  • renamed
  • deleted