diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-10-06 22:37:23 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-10-06 22:37:27 +0200 |
commit | ada4a0ea98fbd8fa396cb601ace6c52f3857f5cc (patch) | |
tree | 75f7fbfbff06e3fd146b2902a20dfad1755c9af6 /modules/luci-base/luasrc/view/cbi | |
parent | e440144d5693eee6858151e8e52b98b594069265 (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/view/cbi')
-rw-r--r-- | modules/luci-base/luasrc/view/cbi/apply_xhr.htm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/view/cbi/apply_xhr.htm b/modules/luci-base/luasrc/view/cbi/apply_xhr.htm index 1814c9393b..6f63ba86be 100644 --- a/modules/luci-base/luasrc/view/cbi/apply_xhr.htm +++ b/modules/luci-base/luasrc/view/cbi/apply_xhr.htm @@ -4,7 +4,7 @@ <script type="text/javascript">//<![CDATA[ var apply_xhr = new XHR(); - apply_xhr.get('<%=luci.dispatcher.build_url("servicectl", "restart", table.concat(configs, ","))%>', null, + apply_xhr.post('<%=luci.dispatcher.build_url("servicectl", "restart", table.concat(configs, ","))%>', { token: '<%=token%>' }, function() { var checkfinish = function() { apply_xhr.get('<%=luci.dispatcher.build_url("servicectl", "status")%>', null, |