mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Add CSRF token to XpressEditor uploader
This commit is contained in:
parent
89255d0281
commit
fea55d17b4
1 changed files with 2 additions and 1 deletions
3
modules/editor/tpl/js/uploader.js
Executable file → Normal file
3
modules/editor/tpl/js/uploader.js
Executable file → Normal file
|
|
@ -54,7 +54,8 @@ var uploadAutosaveChecker = false;
|
|||
mid : current_mid,
|
||||
act : 'procFileUpload',
|
||||
editor_sequence : seq,
|
||||
uploadTargetSrl : editorRelKeys[seq].primary.value
|
||||
uploadTargetSrl : editorRelKeys[seq].primary.value,
|
||||
_rx_csrf_token : getCSRFToken()
|
||||
},
|
||||
http_success : [302],
|
||||
file_size_limit : Math.floor( (parseInt(cfg.allowedFileSize,10)||1024) / 1024 ),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue