Add hidden form field to folder modals as well

This commit is contained in:
johnnyq
2026-03-02 20:51:12 -05:00
parent 90171064a8
commit 6da8821f2c
2 changed files with 2 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ ob_start();
</button>
</div>
<form action="post.php" method="post" autocomplete="off">
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
<input type="hidden" name="client_id" value="<?= $client_id ?>">
<input type="hidden" name="parent_folder" value="<?= $current_folder_id ?>">
<div class="modal-body">

View File

@@ -20,6 +20,7 @@ ob_start();
</button>
</div>
<form action="post.php" method="post" autocomplete="off">
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
<input type="hidden" name="folder_id" value="<?php echo $folder_id; ?>">
<div class="modal-body">