From 3cdd4969466de7efd2cfe0534119acdc6f35218e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 16 Dec 2019 18:01:10 +0100 Subject: [PATCH] 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 --- .../htdocs/luci-static/resources/view/network/dhcp.js | 3 +++ 1 file changed, 3 insertions(+) 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 69dd057c6..430dc6601 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 ]; -- 2.25.1