* luci/libs: web: fix "dispatcher.lua:167: attempt to concatenate a

nil value" when running luci on a shell
This commit is contained in:
Jo-Philipp Wich 2008-08-23 15:17:10 +00:00
parent d8b61a5394
commit 4fc00fead3

View file

@ -164,7 +164,7 @@ function dispatch(request)
viewns.controller = luci.http.getenv("SCRIPT_NAME")
viewns.media = luci.config.main.mediaurlbase
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
local stat, err = pcall(assert, not track.auto)