diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-04-06 06:58:32 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-04-06 06:58:32 +0200 |
commit | d6b4a3d45a37e4a6f4cfa8dcf275c8af3a8a198f (patch) | |
tree | 32f33cbc100ff14d9512c176fa198404a552222b /modules/luci-mod-admin-full/luasrc | |
parent | bfc98bec4d79efb24434e11ea27b3c17c31365ab (diff) |
luci-mod-admin-full: fix request path access in uci controller
Fixes #1725
Fixes 731ed77c0 ("treewide: improve handling of page redirections in uci change views")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-admin-full/luasrc')
-rw-r--r-- | modules/luci-mod-admin-full/luasrc/controller/admin/uci.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/controller/admin/uci.lua b/modules/luci-mod-admin-full/luasrc/controller/admin/uci.lua index c3bf66852..ba317f9f4 100644 --- a/modules/luci-mod-admin-full/luasrc/controller/admin/uci.lua +++ b/modules/luci-mod-admin-full/luasrc/controller/admin/uci.lua @@ -5,7 +5,8 @@ module("luci.controller.admin.uci", package.seeall) function index() - local redir = luci.http.formvalue("redir", true) or table.concat(disp.context.request, "/") + local redir = luci.http.formvalue("redir", true) + or table.concat(luci.dispatcher.context.request, "/") entry({"admin", "uci"}, nil, _("Configuration")) entry({"admin", "uci", "changes"}, call("action_changes"), _("Changes"), 40).query = {redir=redir} |