* 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 d075975..14801c6 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