summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/dispatcher.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-01-20 19:40:14 +0000
committerSteven Barth <steven@midlink.org>2009-01-20 19:40:14 +0000
commit05da6913ddb76674200e4c935bd37b8970c41ca7 (patch)
tree3b373d57c5edbf026a28c66fb94cdb48d687a269 /libs/web/luasrc/dispatcher.lua
parent527edf0ba002370b665add902b530c11fe5e0da2 (diff)
urldecode path_info before using it
Diffstat (limited to 'libs/web/luasrc/dispatcher.lua')
-rw-r--r--libs/web/luasrc/dispatcher.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua
index c0d8b98c28..24ce246dfc 100644
--- 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)