From: Jo-Philipp Wich Date: Thu, 16 Dec 2010 15:59:25 +0000 (+0000) Subject: libs/web: fix error in wep key validation X-Git-Tag: 0.10.0~274 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f68906c20fa82065196d37e243c5819f7ff18ea9;p=oweals%2Fluci.git libs/web: fix error in wep key validation --- 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