From: Jo-Philipp Wich Date: Fri, 6 Apr 2018 04:58:32 +0000 (+0200) Subject: luci-mod-admin-full: fix request path access in uci controller X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d6b4a3d45a37e4a6f4cfa8dcf275c8af3a8a198f;p=project%2Fluci.git 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 --- 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 c3bf668521..ba317f9f4f 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}