mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-02 15:08:45 +02:00
🔒 N°1795 prevent CSRF on dashboard import
This commit is contained in:
@@ -366,6 +366,7 @@ $(function()
|
||||
{
|
||||
dashboard_id: '',
|
||||
file_id: '',
|
||||
transaction: '',
|
||||
text: 'Select a dashboard file to import',
|
||||
title: 'Dahsboard Import',
|
||||
close_btn: 'Close',
|
||||
@@ -383,7 +384,7 @@ $(function()
|
||||
//me.onClose();
|
||||
};
|
||||
$('#'+this.options.file_id).fileupload({
|
||||
url: me.options.submit_to+'&id='+me.options.dashboard_id,
|
||||
url: me.options.submit_to+'&id='+me.options.dashboard_id+'&transaction_id='+me.options.transaction,
|
||||
dataType: 'json',
|
||||
pasteZone: null, // Don't accept files via Chrome's copy/paste
|
||||
done: function (e, data) {
|
||||
|
||||
Reference in New Issue
Block a user