projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-app-privoxy: protect start/stop actions with csrf token
[project/luci.git]
/
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
8c97dae
..
85975ac
100644
(file)
--- 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();
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); }
);
}
function(x) { _data2elements(x); }
);
}