mirror of
https://github.com/itflow-org/itflow
synced 2026-03-12 00:34:52 +00:00
Add CSRF Checks on Agent ajax endpoints that would update / delete or add something to the db
This commit is contained in:
@@ -516,6 +516,7 @@ new Sortable(document.querySelector('table#items tbody'), {
|
||||
|
||||
$.post('ajax.php', {
|
||||
update_recurring_invoice_items_order: true,
|
||||
csrf_token: '<?= $_SESSION['csrf_token'] ?>',
|
||||
recurring_invoice_id: <?php echo $recurring_invoice_id; ?>,
|
||||
positions: positions
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user