projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Added support for CGI SGI
[project/luci.git]
/
libs
/
web
/
luasrc
/
dispatcher.lua
diff --git
a/libs/web/luasrc/dispatcher.lua
b/libs/web/luasrc/dispatcher.lua
index e3ebe5b0e427a094512163845dfd03c95e0d5c37..f5894bffc8d90e87b6e06d2c288ed29f2cb9ee58 100644
(file)
--- a/
libs/web/luasrc/dispatcher.lua
+++ b/
libs/web/luasrc/dispatcher.lua
@@
-84,7
+84,7
@@
end
function httpdispatch(request)
luci.http.context.request = request
context.request = {}
function httpdispatch(request)
luci.http.context.request = request
context.request = {}
- local pathinfo = request
.env.PATH_INFO
or ""
+ local pathinfo = request
:getenv("PATH_INFO")
or ""
for node in pathinfo:gmatch("[^/]+") do
table.insert(context.request, node)
for node in pathinfo:gmatch("[^/]+") do
table.insert(context.request, node)