summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/dispatcher.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-11 12:53:41 +0000
committerSteven Barth <steven@midlink.org>2008-08-11 12:53:41 +0000
commitb723b936c53d251d43a1e5999ca81c88cf2cad3f (patch)
tree12e5dc3e6a0204be3cd3d4d68a450c99d9def494 /libs/web/luasrc/dispatcher.lua
parent37b3fba68869e1d96a46990caf02ccd67c7b93a9 (diff)
Minor bugfixes
Diffstat (limited to 'libs/web/luasrc/dispatcher.lua')
-rw-r--r--libs/web/luasrc/dispatcher.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua
index ca507bebdf..4253fc04a6 100644
--- a/libs/web/luasrc/dispatcher.lua
+++ b/libs/web/luasrc/dispatcher.lua
@@ -172,7 +172,8 @@ function dispatch(request)
local authen = authenticator[track.sysauth_authenticator]
local def = (type(track.sysauth) == "string") and track.sysauth
local accs = def and {track.sysauth} or track.sysauth
- local sess = luci.http.getcookie("sysauth"):match("^[A-F0-9]+$")
+ local sess = luci.http.getcookie("sysauth")
+ sess = sess and sess:match("^[A-F0-9]+$")
local user = luci.sauth.read(sess)
if not luci.util.contains(accs, user) then