projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
472dc4b
)
luci-base: fix logic errors in ipmask4 and ipmask6 datatype validators
986/head
author
Jo-Philipp Wich
<jo@mein.io>
Mon, 30 Jan 2017 18:14:08 +0000
(19:14 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Mon, 30 Jan 2017 18:14:54 +0000
(19:14 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/cbi/datatypes.lua
patch
|
blob
|
history
diff --git
a/modules/luci-base/luasrc/cbi/datatypes.lua
b/modules/luci-base/luasrc/cbi/datatypes.lua
index 98f6a44d77e7929fadce3b0ad1c494bf677f0dcd..72b41ddad89386e4a13c6e715cf747643f67cb60 100644
(file)
--- a/
modules/luci-base/luasrc/cbi/datatypes.lua
+++ b/
modules/luci-base/luasrc/cbi/datatypes.lua
@@
-143,7
+143,7
@@
function ipmask4(val)
return false
end
- if not bits and not ip4addr(mask) then
+ if not bits and
mask and
not ip4addr(mask) then
return false
end
@@
-158,7
+158,7
@@
function ipmask6(val)
return false
end
- if not bits and not ip6addr(mask) then
+ if not bits and
mask and
not ip6addr(mask) then
return false
end