summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-12-16 15:59:25 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-12-16 15:59:25 +0000
commitf68906c20fa82065196d37e243c5819f7ff18ea9 (patch)
treec461986692b335aa22782a14bba1b0cbf0b39fad /libs/web/luasrc
parentd2b8dbe8118b756e517e49de81afe0a1a737b921 (diff)
libs/web: fix error in wep key validation
Diffstat (limited to 'libs/web/luasrc')
-rw-r--r--libs/web/luasrc/cbi/datatypes.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/cbi/datatypes.lua b/libs/web/luasrc/cbi/datatypes.lua
index 62f06c4b40..67cb63daf0 100644
--- a/libs/web/luasrc/cbi/datatypes.lua
+++ b/libs/web/luasrc/cbi/datatypes.lua
@@ -154,7 +154,7 @@ function wepkey(val)
if (#val == 10) or (#val == 26) then
return (val:match("^[a-fA-F0-9]+$") ~= nil)
else
- return (#v == 5) or (#v == 13)
+ return (#val == 5) or (#val == 13)
end
end