From: Jo-Philipp Wich Date: Tue, 20 Oct 2015 22:00:55 +0000 (+0200) Subject: luci-app-ocserv: protect disconnect action with csrf token X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0f1f5140e36eff6d22de038f09f1d16b03e300e8;p=oweals%2Fluci.git luci-app-ocserv: protect disconnect action with csrf token Signed-off-by: Jo-Philipp Wich --- diff --git a/applications/luci-app-ocserv/luasrc/controller/ocserv.lua b/applications/luci-app-ocserv/luasrc/controller/ocserv.lua index dbeaaf852..79c6ddb78 100644 --- a/applications/luci-app-ocserv/luasrc/controller/ocserv.lua +++ b/applications/luci-app-ocserv/luasrc/controller/ocserv.lua @@ -28,7 +28,7 @@ function index() call("ocserv_status")).leaf = true entry({"admin", "services", "ocserv", "disconnect"}, - call("ocserv_disconnect")).leaf = true + post("ocserv_disconnect")).leaf = true end diff --git a/applications/luci-app-ocserv/luasrc/view/ocserv_status.htm b/applications/luci-app-ocserv/luasrc/view/ocserv_status.htm index 138b03915..03a9ed70e 100644 --- a/applications/luci-app-ocserv/luasrc/view/ocserv_status.htm +++ b/applications/luci-app-ocserv/luasrc/view/ocserv_status.htm @@ -1,7 +1,7 @@