summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-05-23 09:58:53 +0200
committerGitHub <noreply@github.com>2018-05-23 09:58:53 +0200
commit7acacf2cf806c5d74fc60f8a2de95628ba52bb7d (patch)
tree2293134cd7374a2c049ef38b648a1dbbe4cdf475
parentbc8e92863926fa6a9ae050b009bb201d576e76f8 (diff)
parentda1e655294163bd7341d234ac5cc8b070690b28a (diff)
Merge pull request #1814 from Ansuel/lua-interpreter
luci-base: fix dispacher fail
-rw-r--r--modules/luci-base/luasrc/dispatcher.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/dispatcher.lua b/modules/luci-base/luasrc/dispatcher.lua
index 45e1e308f..2c58b0ab3 100644
--- a/modules/luci-base/luasrc/dispatcher.lua
+++ b/modules/luci-base/luasrc/dispatcher.lua
@@ -358,7 +358,7 @@ function dispatch(request)
elseif key == "REQUEST_URI" then
return build_url(unpack(ctx.requestpath))
elseif key == "FULL_REQUEST_URI" then
- local url = { http.getenv("SCRIPT_NAME"), http.getenv("PATH_INFO") }
+ local url = { http.getenv("SCRIPT_NAME") or "" , http.getenv("PATH_INFO") }
local query = http.getenv("QUERY_STRING")
if query and #query > 0 then
url[#url+1] = "?"