* luci/libs: web: fix "dispatcher.lua:167: attempt to concatenate a
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 23 Aug 2008 15:17:10 +0000 (15:17 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 23 Aug 2008 15:17:10 +0000 (15:17 +0000)
nil value" when running luci on a shell

libs/web/luasrc/dispatcher.lua

index 068f350ce4da22a756a834fe1667a948e7d22559..3ee42d72bbaca3aa9b524ee9ff426c4c7acbe584 100644 (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)