luci-base: fix client side "host" datatype validator
authorJo-Philipp Wich <jo@mein.io>
Wed, 25 Oct 2017 12:23:45 +0000 (14:23 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 25 Oct 2017 12:23:47 +0000 (14:23 +0200)
Fixes #1413.

Reported-by: Wojciech Jowsa <wojciech.jowsa@gmail.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/cbi.js

index 884eb62f68168c7cdfdaffb7bdd46b3dddb2a30c..b334703bdfb421964a57d6c7e64f4abda64f5dd1 100644 (file)
@@ -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()