From 955efe33a1f32288ec1adddc30904bcbbe1a1c8e Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 6 Nov 2018 15:29:06 -0500 Subject: [PATCH] fug --- contrib/static/overchan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/static/overchan.js b/contrib/static/overchan.js index 94fb8ae..46676fc 100644 --- a/contrib/static/overchan.js +++ b/contrib/static/overchan.js @@ -36,7 +36,6 @@ var nntpchan_mod_commit_spam = function(elem) { { var ajax = new XMLHttpRequest(); - ajax.setRequestHeader("X-CSRF-Token", jax.getResponseHeader("X-CSRF-Token")); ajax.onreadystatechange = function() { if(ajax.readyState == 4) { @@ -60,6 +59,7 @@ var nntpchan_mod_commit_spam = function(elem) { } }; ajax.open("POST", "/mod/spam") + ajax.setRequestHeader("X-CSRF-Token", jax.getResponseHeader("X-CSRF-Token")); ajax.send(formdata); } else