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:
bfc98be
)
luci-mod-admin-full: fix request path access in uci controller
author
Jo-Philipp Wich
<jo@mein.io>
Fri, 6 Apr 2018 04:58:32 +0000
(06:58 +0200)
committer
Jo-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
patch
|
blob
|
history
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 c3bf668521b3c131c148c1d696e092c2bc71c0bf..ba317f9f4ffd5100b6604cd54b08ae9eb34bca9c 100644
(file)
--- 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}