From: Steven Barth Date: Tue, 20 Jan 2009 19:40:14 +0000 (+0000) Subject: urldecode path_info before using it X-Git-Tag: 0.9.0~751 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=05da6913ddb76674200e4c935bd37b8970c41ca7 urldecode path_info before using it --- 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)