projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fbcef9
)
Fix requestpath, export authuser
author
Steven Barth
<steven@midlink.org>
Fri, 11 Sep 2009 10:46:06 +0000
(10:46 +0000)
committer
Steven Barth
<steven@midlink.org>
Fri, 11 Sep 2009 10:46:06 +0000
(10:46 +0000)
libs/web/luasrc/dispatcher.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/dispatcher.lua
b/libs/web/luasrc/dispatcher.lua
index 6d4433975135124740e3e3752e7b742a5a5cb92d..ad4f24dc777205ddc15743efa55bd0a100023f24 100644
(file)
--- 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