Skip to content

Commit fdba737

Browse files
committed
dont validate twice in header.php
1 parent f4a8346 commit fdba737

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/templates/header.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
use UnityWebPortal\lib\UnityHTTPD;
44

55
if ($_SERVER["REQUEST_METHOD"] == "POST") {
6-
UnityHTTPD::validatePostCSRFToken();
6+
// another page should have already validated and we can't validate the same token twice
7+
// UnityHTTPD::validatePostCSRFToken();
78
if (
89
($_SESSION["is_admin"] ?? false) == true
910
&& ($_POST["form_type"] ?? null) == "clearView"

0 commit comments

Comments
 (0)