From 07e7ff07aa45ca8b49ab7290bce89aac6994f9a0 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 25 Oct 2017 14:23:45 +0200 Subject: [PATCH] Fixes #1413. Reported-by: Wojciech Jowsa Signed-off-by: Jo-Philipp Wich (cherry picked from commit fbe7f90eed4545e4b23a940a47043a2001625429) --- modules/luci-base/htdocs/luci-static/resources/cbi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js index 8e66cbc38..0a362affb 100644 --- a/modules/luci-base/htdocs/luci-static/resources/cbi.js +++ b/modules/luci-base/htdocs/luci-static/resources/cbi.js @@ -189,7 +189,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() -- 2.25.1