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