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> (cherry picked from commit3cdd496946
)
This commit is contained in:
parent
17a7fb7775
commit
9c88db57fe
1 changed files with 3 additions and 0 deletions
|
@ -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 ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue