From 4fc00fead31332769eb9c584460beda1f076d98d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 23 Aug 2008 15:17:10 +0000 Subject: [PATCH] * luci/libs: web: fix "dispatcher.lua:167: attempt to concatenate a nil value" when running luci on a shell --- libs/web/luasrc/dispatcher.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 068f350ce..3ee42d72b 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -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) -- 2.25.1