diff options
| author | Steven Barth <steven@midlink.org> | 2009-01-20 19:41:01 +0000 |
|---|---|---|
| committer | Steven Barth <steven@midlink.org> | 2009-01-20 19:41:01 +0000 |
| commit | f41f5640910214ccd53ba450bcd177ebaa023673 (patch) | |
| tree | 72a97ee0fd732cecdb58d529c4d062f47be567f4 | |
| parent | 119a545ffcd35df1d06c9bd91db7cfe7fa8a2283 (diff) | |
urldecode path_info before using it
| -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 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) |
