projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
119a545
)
urldecode path_info before using it
author
Steven Barth
<steven@midlink.org>
Tue, 20 Jan 2009 19:41:01 +0000
(19:41 +0000)
committer
Steven Barth
<steven@midlink.org>
Tue, 20 Jan 2009 19:41:01 +0000
(19:41 +0000)
libs/web/luasrc/dispatcher.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/dispatcher.lua
b/libs/web/luasrc/dispatcher.lua
index c0d8b98c28a1b32aa52ec17a1444845abb2673f4..24ce246dfcfe9dab75f7a24b628dac512c263101 100644
(file)
--- a/
libs/web/luasrc/dispatcher.lua
+++ b/
libs/web/luasrc/dispatcher.lua
@@
-105,7
+105,7
@@
end
function httpdispatch(request)
luci.http.context.request = request
context.request = {}
- local pathinfo =
request:getenv("PATH_INFO") or ""
+ local pathinfo =
http.urldecode(request:getenv("PATH_INFO") or "", true)
for node in pathinfo:gmatch("[^/]+") do
table.insert(context.request, node)