diff options
Diffstat (limited to 'modules/luci-mod-network/htdocs')
-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 ]; |