Add CSRF protection to every form that changes data.
The logout link carries the token too, and the cookies get SameSite=Lax.
This commit is contained in:
@@ -21,6 +21,7 @@ if (count($validate) !== 0) {
|
||||
?>
|
||||
|
||||
<form id="write" method="post" enctype="multipart/form-data" onsubmit="return review()" action="">
|
||||
<?= csrf_field() ?>
|
||||
|
||||
<div class="grid">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user