summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-12-16 18:01:10 +0100
committerJo-Philipp Wich <jo@mein.io>2019-12-16 18:01:50 +0100
commit3cdd4969466de7efd2cfe0534119acdc6f35218e (patch)
tree0bb744a7fc85c9559235d7f213953b6225d44432 /modules/luci-mod-network/htdocs/luci-static/resources
parent62e28f4b0a61abc4d45c6dc7cc5794e7847909e5 (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/resources')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js3
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 ];