luci-mod-admin-full: fix request path access in uci controller
authorJo-Philipp Wich <jo@mein.io>
Fri, 6 Apr 2018 04:58:32 +0000 (06:58 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 6 Apr 2018 04:58:32 +0000 (06:58 +0200)
Fixes #1725
Fixes 731ed77c0 ("treewide: improve handling of page redirections in uci change views")

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-admin-full/luasrc/controller/admin/uci.lua

index c3bf668521b3c131c148c1d696e092c2bc71c0bf..ba317f9f4ffd5100b6604cd54b08ae9eb34bca9c 100644 (file)
@@ -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}