Skip to content

Commit 50b8568

Browse files
committed
validate in POST in header.php
1 parent 5514b56 commit 50b8568

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

resources/templates/header.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use UnityWebPortal\lib\UnityHTTPD;
44

55
if ($_SERVER["REQUEST_METHOD"] == "POST") {
6+
UnityHTTPD::validatePostCSRFToken();
67
if (
78
($_SESSION["is_admin"] ?? false) == true
89
&& ($_POST["form_type"] ?? null) == "clearView"

0 commit comments

Comments
 (0)