urldecode path_info before using it
authorSteven Barth <steven@midlink.org>
Tue, 20 Jan 2009 19:41:01 +0000 (19:41 +0000)
committerSteven Barth <steven@midlink.org>
Tue, 20 Jan 2009 19:41:01 +0000 (19:41 +0000)
libs/web/luasrc/dispatcher.lua

index c0d8b98..24ce246 100644 (file)
@@ -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)