diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-12-16 18:01:10 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-12-16 18:01:50 +0100 |
commit | 3cdd4969466de7efd2cfe0534119acdc6f35218e (patch) | |
tree | 0bb744a7fc85c9559235d7f213953b6225d44432 /modules/luci-mod-network/htdocs/luci-static | |
parent | 62e28f4b0a61abc4d45c6dc7cc5794e7847909e5 (diff) |
luci-mod-network: fix rebind list validation
Fixes: 62e28f4b0 ("luci-mod-network: dhcp.js: fix address and rebind list validation")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static')
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js index 69dd057c67..430dc6601a 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -76,6 +76,9 @@ function validateHostname(sid, s) { } function validateAddressList(sid, s) { + if (s == null || s == '') + return true; + var m = s.match(/^\/(.+)\/$/), names = m ? m[1].split(/\//) : [ s ]; |