* Fixed dispatching regex
authorSteven Barth <steven@midlink.org>
Thu, 29 May 2008 18:52:22 +0000 (18:52 +0000)
committerSteven Barth <steven@midlink.org>
Thu, 29 May 2008 18:52:22 +0000 (18:52 +0000)
libs/web/luasrc/dispatcher.lua

index d075975da3fb2a26157d882de4d7cbbf41f239a2..14801c633505190cf4458b8ba878d82e6d1c2a9c 100644 (file)
@@ -80,7 +80,7 @@ function httpdispatch()
        local pathinfo = luci.http.env.PATH_INFO or ""
        local c = tree
 
-       for s in pathinfo:gmatch("([%w_]+)") do
+       for s in pathinfo:gmatch("([%w-]+)") do
                table.insert(request, s)
        end