Ticket Tasks: Add missing CSRF checks and other CSRF checks missed in he previous commits

This commit is contained in:
johnnyq
2026-03-01 21:45:26 -05:00
parent 54638428e3
commit 308dc6e550
6 changed files with 30 additions and 12 deletions

View File

@@ -527,7 +527,7 @@ if (isset($_GET['project_id'])) {
<?php if ($task_completed_at) { ?>
<i class="far fa-check-square text-success mr-2"></i>
<?php } else { ?>
<a href="post.php?complete_task=<?php echo $task_id; ?>">
<a href="post.php?complete_task=<?= $task_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
<i class="far fa-square text-secondary mr-2"></i>
</a>
<?php } ?>