summaryrefslogtreecommitdiffhomepage
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
parentd2b8dbe8118b756e517e49de81afe0a1a737b921 (diff)
libs/web: fix error in wep key validation
-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 62f06c4b4..67cb63daf 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