diff options
author | Steven Barth <steven@midlink.org> | 2009-01-20 19:40:14 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-01-20 19:40:14 +0000 |
commit | 05da6913ddb76674200e4c935bd37b8970c41ca7 (patch) | |
tree | 3b373d57c5edbf026a28c66fb94cdb48d687a269 /libs/web | |
parent | 527edf0ba002370b665add902b530c11fe5e0da2 (diff) |
urldecode path_info before using it
Diffstat (limited to 'libs/web')
-rw-r--r-- | libs/web/luasrc/dispatcher.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index c0d8b98c2..24ce246df 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) |