From: Steven Barth Date: Thu, 29 May 2008 18:52:22 +0000 (+0000) Subject: * Fixed dispatching regex X-Git-Tag: 0.8.0~958 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=d8f5ce4759ac7077fadbcdc90842401b9fa69f2e;hp=8687547e47b7c90099013b903e89113300903d27 * Fixed dispatching regex --- diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index d075975da..14801c633 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -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