From: jordan Date: Thu, 23 Jun 2011 23:07:06 +0000 (+0000) Subject: OSQA-697, don't pass the CSRF token to the AJAX request when posting a new comment X-Git-Tag: live~242 X-Git-Url: https://git.openstreetmap.org/osqa.git/commitdiff_plain/0fa0566b62e7ac7fe389821e48bba5507758c4df OSQA-697, don't pass the CSRF token to the AJAX request when posting a new comment git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1071 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/skins/default/media/js/osqa.main.js b/forum/skins/default/media/js/osqa.main.js index ebc9cf0..993407b 100644 --- a/forum/skins/default/media/js/osqa.main.js +++ b/forum/skins/default/media/js/osqa.main.js @@ -572,7 +572,7 @@ $(function() { } start_command(); - $.post($form.attr('action'), post_data, function(data) { + $.post($form.attr('action'), $form.serialize(), function(data) { process_ajax_response(data, evt, function(error) { if (!error) { cleanup_form();