mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +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,
|
mid : current_mid,
|
||||||
act : 'procFileUpload',
|
act : 'procFileUpload',
|
||||||
editor_sequence : seq,
|
editor_sequence : seq,
|
||||||
uploadTargetSrl : editorRelKeys[seq].primary.value
|
uploadTargetSrl : editorRelKeys[seq].primary.value,
|
||||||
|
_rx_csrf_token : getCSRFToken()
|
||||||
},
|
},
|
||||||
http_success : [302],
|
http_success : [302],
|
||||||
file_size_limit : Math.floor( (parseInt(cfg.allowedFileSize,10)||1024) / 1024 ),
|
file_size_limit : Math.floor( (parseInt(cfg.allowedFileSize,10)||1024) / 1024 ),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue