From 05da6913ddb76674200e4c935bd37b8970c41ca7 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 20 Jan 2009 19:40:14 +0000 Subject: urldecode path_info before using it --- libs/web/luasrc/dispatcher.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs') 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) -- cgit v1.2.3