diff options
author | Phil Davis <phil.davis@inf.org> | 2016-10-20 17:34:44 +0930 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-20 17:34:44 +0930 |
commit | eb01f06578294d13cd3450e8b882d627b1528a35 (patch) | |
tree | d80566c80e3de52a316659e785ac7b510bf0ec0b /tools/templates/core_pkg/kernel | |
parent | c982fdbc32ebe374e2f68ac79019aa7cf54d6b55 (diff) | |
download | pfsense-eb01f06578294d13cd3450e8b882d627b1528a35.zip pfsense-eb01f06578294d13cd3450e8b882d627b1528a35.tar.gz |
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").
Diffstat (limited to 'tools/templates/core_pkg/kernel')
0 files changed, 0 insertions, 0 deletions