luci-app-radicale: protect start/stop actions with csrf token
[project/luci.git] / applications / luci-app-radicale / luasrc / view / radicale / btn_startstop.htm
index b346275..dbf4ddd 100644 (file)
@@ -21,7 +21,7 @@
        function onclick_startstop(id) {
                // do start/stop
                var btnXHR = new XHR();
-               btnXHR.get('<%=url('admin/services/radicale/startstop')%>', null,
+               btnXHR.post('<%=url('admin/services/radicale/startstop')%>', { token: '<%=token%>' },
                        function(x) { _data2elements(x); }
                );
        }