diff options
author | Steven Barth <steven@midlink.org> | 2009-09-11 10:46:06 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-09-11 10:46:06 +0000 |
commit | 9b50dd9cba080ffd37a427e080785d56e2bba5c9 (patch) | |
tree | ca8dc3fdf9b43d952dcfb20b63d1ed1dab1316e7 /libs/web/luasrc/dispatcher.lua | |
parent | 0fbcef99a3e7659b2c0a340778cba30d3288eeb0 (diff) |
Fix requestpath, export authuser
Diffstat (limited to 'libs/web/luasrc/dispatcher.lua')
-rw-r--r-- | libs/web/luasrc/dispatcher.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 6d44339751..ad4f24dc77 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -208,7 +208,7 @@ function dispatch(request) end end - ctx.requestpath = freq + ctx.requestpath = ctx.requestpath or freq ctx.path = preq if track.i18n then @@ -306,6 +306,7 @@ function dispatch(request) end luci.http.header("Set-Cookie", "sysauth=" .. sid.."; path="..build_url()) ctx.authsession = sid + ctx.authuser = user end else luci.http.status(403, "Forbidden") @@ -313,6 +314,7 @@ function dispatch(request) end else ctx.authsession = sess + ctx.authuser = user end end |