From: Jo-Philipp Wich Date: Wed, 25 Oct 2017 12:23:45 +0000 (+0200) Subject: luci-base: fix client side "host" datatype validator X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fbe7f90eed4545e4b23a940a47043a2001625429;p=oweals%2Fluci.git luci-base: fix client side "host" datatype validator Fixes #1413. Reported-by: Wojciech Jowsa Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js index 884eb62f6..b334703bd 100644 --- a/modules/luci-base/htdocs/luci-static/resources/cbi.js +++ b/modules/luci-base/htdocs/luci-static/resources/cbi.js @@ -229,7 +229,7 @@ var cbi_validators = { { return cbi_validators.hostname.apply(this) || ((ipv4only != 1) && cbi_validators.ipaddr.apply(this)) || - ((ipv4only == 1) && cb_validators.ip4addr.apply(this)); + ((ipv4only == 1) && cbi_validators.ip4addr.apply(this)); }, 'hostname': function()