diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-12-16 15:59:25 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-12-16 15:59:25 +0000 |
commit | f68906c20fa82065196d37e243c5819f7ff18ea9 (patch) | |
tree | c461986692b335aa22782a14bba1b0cbf0b39fad /libs/web/luasrc/cbi | |
parent | d2b8dbe8118b756e517e49de81afe0a1a737b921 (diff) |
libs/web: fix error in wep key validation
Diffstat (limited to 'libs/web/luasrc/cbi')
-rw-r--r-- | libs/web/luasrc/cbi/datatypes.lua | 2 |
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 |