mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update luci-base
This commit is contained in:
parent
54f07a7e1e
commit
0a00c769a1
41 changed files with 885 additions and 3727 deletions
|
@ -358,7 +358,7 @@ function dispatch(request)
|
|||
elseif key == "REQUEST_URI" then
|
||||
return build_url(unpack(ctx.requestpath))
|
||||
elseif key == "FULL_REQUEST_URI" then
|
||||
local url = { http.getenv("SCRIPT_NAME") or "" , http.getenv("PATH_INFO") }
|
||||
local url = { http.getenv("SCRIPT_NAME") or "", http.getenv("PATH_INFO") }
|
||||
local query = http.getenv("QUERY_STRING")
|
||||
if query and #query > 0 then
|
||||
url[#url+1] = "?"
|
||||
|
@ -507,10 +507,11 @@ function dispatch(request)
|
|||
else
|
||||
ok, err = util.copcall(target, unpack(args))
|
||||
end
|
||||
assert(ok,
|
||||
"Failed to execute " .. (type(c.target) == "function" and "function" or c.target.type or "unknown") ..
|
||||
" dispatcher target for entry '/" .. table.concat(request, "/") .. "'.\n" ..
|
||||
"The called action terminated with an exception:\n" .. tostring(err or "(unknown)"))
|
||||
if not ok then
|
||||
error500("Failed to execute " .. (type(c.target) == "function" and "function" or c.target.type or "unknown") ..
|
||||
" dispatcher target for entry '/" .. table.concat(request, "/") .. "'.\n" ..
|
||||
"The called action terminated with an exception:\n" .. tostring(err or "(unknown)"))
|
||||
end
|
||||
else
|
||||
local root = node()
|
||||
if not root or not root.target then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue