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 c0d8b98c28a1b32aa52ec17a1444845abb2673f4..24ce246dfcfe9dab75f7a24b628dac512c263101 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)