* luci/libs: web: fix "dispatcher.lua:167: attempt to concatenate a
nil value" when running luci on a shell
This commit is contained in:
parent
d8b61a5394
commit
4fc00fead3
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ function dispatch(request)
|
||||||
viewns.controller = luci.http.getenv("SCRIPT_NAME")
|
viewns.controller = luci.http.getenv("SCRIPT_NAME")
|
||||||
viewns.media = luci.config.main.mediaurlbase
|
viewns.media = luci.config.main.mediaurlbase
|
||||||
viewns.resource = luci.config.main.resourcebase
|
viewns.resource = luci.config.main.resourcebase
|
||||||
viewns.REQUEST_URI = luci.http.getenv("SCRIPT_NAME") .. (luci.http.getenv("PATH_INFO") or "")
|
viewns.REQUEST_URI = (luci.http.getenv("SCRIPT_NAME") or "") .. (luci.http.getenv("PATH_INFO") or "")
|
||||||
|
|
||||||
if track.dependent then
|
if track.dependent then
|
||||||
local stat, err = pcall(assert, not track.auto)
|
local stat, err = pcall(assert, not track.auto)
|
||||||
|
|
Loading…
Reference in a new issue