projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e00e13
)
luci-base: fix client side "host" datatype validator
author
Jo-Philipp Wich
<jo@mein.io>
Wed, 25 Oct 2017 12:23:45 +0000
(14:23 +0200)
committer
Jo-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
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/cbi.js
b/modules/luci-base/htdocs/luci-static/resources/cbi.js
index 884eb62f68168c7cdfdaffb7bdd46b3dddb2a30c..b334703bdfb421964a57d6c7e64f4abda64f5dd1 100644
(file)
--- 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) && cb
i
_validators.ip4addr.apply(this));
},
'hostname': function()