From ae9fb03e74d54c5e11d6925e3ddc1bb5991cd733 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 21 Oct 2015 00:03:03 +0200 Subject: luci-app-privoxy: protect start/stop actions with csrf token Signed-off-by: Jo-Philipp Wich --- applications/luci-app-privoxy/luasrc/view/privoxy/detail_startstop.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-privoxy/luasrc/view/privoxy/detail_startstop.htm') diff --git a/applications/luci-app-privoxy/luasrc/view/privoxy/detail_startstop.htm b/applications/luci-app-privoxy/luasrc/view/privoxy/detail_startstop.htm index 8c97daeee2..85975ac7d1 100644 --- a/applications/luci-app-privoxy/luasrc/view/privoxy/detail_startstop.htm +++ b/applications/luci-app-privoxy/luasrc/view/privoxy/detail_startstop.htm @@ -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); } ); } -- cgit v1.2.3