projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8b61a5
)
* luci/libs: web: fix "dispatcher.lua:167: attempt to concatenate a
author
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 23 Aug 2008 15:17:10 +0000
(15:17 +0000)
committer
Jo-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
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/dispatcher.lua
b/libs/web/luasrc/dispatcher.lua
index 068f350ce4da22a756a834fe1667a948e7d22559..3ee42d72bbaca3aa9b524ee9ff426c4c7acbe584 100644
(file)
--- 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)