We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1072f73 commit da8f905Copy full SHA for da8f905
resources/lib/UnityHTTPD.php
@@ -394,7 +394,13 @@ public static function validatePostCSRFToken(): void
394
{
395
$token = self::getPostData("csrf_token");
396
if (!CSRFToken::validate($token)) {
397
- self::badRequest("CSRF token validation failed", data: ["token" => $token]);
+ $errorid = uniqid();
398
+ self::errorLog("csrf failed to validate", "", errorid: $errorid);
399
+ self::messageError(
400
+ "Invalid Session Token",
401
+ "This can happen if you leave your browser open for a long time. Error ID: $errorid",
402
+ );
403
+ self::redirect();
404
}
405
406
0 commit comments