mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
fixed all POST routes to use new csrf middleware
This commit is contained in:
@@ -19,6 +19,7 @@ define('uploader', function() {
|
||||
uploadForm[0].reset();
|
||||
uploadForm.attr('action', route);
|
||||
uploadForm.find('#params').val(JSON.stringify(params));
|
||||
uploadForm.find('#csrfToken').val($('#csrf').attr('data-csrf'));
|
||||
|
||||
if(fileSize) {
|
||||
uploadForm.find('#upload-file-size').html(fileSize);
|
||||
|
||||
Reference in New Issue
Block a user