summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc/controller
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-10-06 22:37:23 +0200
committerJo-Philipp Wich <jow@openwrt.org>2015-10-06 22:37:27 +0200
commitada4a0ea98fbd8fa396cb601ace6c52f3857f5cc (patch)
tree75f7fbfbff06e3fd146b2902a20dfad1755c9af6 /modules/luci-base/luasrc/controller
parente440144d5693eee6858151e8e52b98b594069265 (diff)
luci-base: switch to POST action for service reload
Switches the service reload calls to CSRF token protected POST action. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'modules/luci-base/luasrc/controller')
-rw-r--r--modules/luci-base/luasrc/controller/admin/servicectl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/controller/admin/servicectl.lua b/modules/luci-base/luasrc/controller/admin/servicectl.lua
index 5b855cb24..1d73eb4ec 100644
--- a/modules/luci-base/luasrc/controller/admin/servicectl.lua
+++ b/modules/luci-base/luasrc/controller/admin/servicectl.lua
@@ -6,7 +6,7 @@ module("luci.controller.admin.servicectl", package.seeall)
function index()
entry({"servicectl"}, alias("servicectl", "status")).sysauth = "root"
entry({"servicectl", "status"}, call("action_status")).leaf = true
- entry({"servicectl", "restart"}, call("action_restart")).leaf = true
+ entry({"servicectl", "restart"}, post("action_restart")).leaf = true
end
function action_status()