v1.3.0 #124

Merged
DrMaxNix merged 43 commits from dev into main 2024-07-29 19:21:56 +02:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit a794127f5f - Show all commits

View File

@ -6,7 +6,7 @@
// CHECK CSRF PROTECTION //
$x_cookieless_csrf_protection = getallheaders()["x-cookieless-csrf-protection"] ?? null;
if($x_cookieless_csrf_protection !== "42"){
if(\Flake\Env::IS_PRODUCTION and $x_cookieless_csrf_protection !== "42"){
// show an excuse page
Excuse::show("invalid_csrf_token");
}

View File

@ -6,7 +6,7 @@
// CHECK CSRF PROTECTION //
$x_cookieless_csrf_protection = getallheaders()["x-cookieless-csrf-protection"] ?? null;
if($x_cookieless_csrf_protection !== "42"){
if(\Flake\Env::IS_PRODUCTION and $x_cookieless_csrf_protection !== "42"){
// show an excuse page
Excuse::show("invalid_csrf_token");
}

View File

@ -5,7 +5,7 @@
// CHECK CSRF PROTECTION //
$x_cookieless_csrf_protection = getallheaders()["x-cookieless-csrf-protection"] ?? null;
if($x_cookieless_csrf_protection !== "42"){
if(\Flake\Env::IS_PRODUCTION and $x_cookieless_csrf_protection !== "42"){
// show an excuse page
Excuse::show("invalid_csrf_token");
}