summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ocserv/luasrc/controller/ocserv.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-10-21 00:00:55 +0200
committerJo-Philipp Wich <jow@openwrt.org>2015-10-21 00:00:55 +0200
commit0f1f5140e36eff6d22de038f09f1d16b03e300e8 (patch)
tree8a86db0756767210265490d644e39ef2a1ef9a29 /applications/luci-app-ocserv/luasrc/controller/ocserv.lua
parentb9ed03c5a9a52c17b30f3fb61b81ce1c2ee0ea6e (diff)
luci-app-ocserv: protect disconnect action with csrf token
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'applications/luci-app-ocserv/luasrc/controller/ocserv.lua')
-rw-r--r--applications/luci-app-ocserv/luasrc/controller/ocserv.lua2
1 files changed, 1 insertions, 1 deletions
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