urldecode path_info before using it
This commit is contained in:
parent
119a545ffc
commit
f41f564091
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue