summaryrefslogtreecommitdiff
path: root/lib/scripts/edit.js
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2011-05-25 12:15:04 +0200
committerMichael Hamann <michael@content-space.de>2011-05-25 12:15:04 +0200
commitf7b6e27ea2558ddfc97547178408841c5d51c5b6 (patch)
tree415974b93772d3a61a6125ba73fd4a6548a2f49f /lib/scripts/edit.js
parent5db163967c4a81c7ff8f76c0d157663a00c71e5f (diff)
downloadrpg-f7b6e27ea2558ddfc97547178408841c5d51c5b6.tar.gz
rpg-f7b6e27ea2558ddfc97547178408841c5d51c5b6.tar.bz2
Remove the security token from the ajax draft/lock calls again
The security token here doesn't improve the security as the other requests that allow you to do the same thing aren't protected and I don't see why locking or draft creation should be subject of XSRF attacks.
Diffstat (limited to 'lib/scripts/edit.js')
-rw-r--r--lib/scripts/edit.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/scripts/edit.js b/lib/scripts/edit.js
index 31afcc126..a96a346dc 100644
--- a/lib/scripts/edit.js
+++ b/lib/scripts/edit.js
@@ -275,7 +275,6 @@ function deleteDraft() {
if(dwform){
var params = 'call=draftdel';
params += '&id='+encodeURIComponent(dwform.elements.id.value);
- params += '&sectok='+encodeURIComponent(dwform.elements.sectok.value);
var sackobj = new sack(DOKU_BASE + 'lib/exe/ajax.php');
// this needs to be synchronous and GET to not be aborted upon page unload