From c3720e5d5e5b909616934806941a7f54b39eb4e5 Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Sun, 7 Jan 2024 23:47:44 +0100 Subject: [PATCH] Fixing typo in secure_login.php Thanks to @gathlete - https://forum.myvestacp.com/viewtopic.php?t=928 --- web/inc/secure_login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/inc/secure_login.php b/web/inc/secure_login.php index 3dcdb0ae..d21a4322 100644 --- a/web/inc/secure_login.php +++ b/web/inc/secure_login.php @@ -59,7 +59,7 @@ function prevent_post_csrf ($hard_check=false) { if (isset($_SERVER['HTTP_ORIGIN']) == false) return; } else { if (isset($_SERVER['HTTP_HOST']) == false) $_SERVER['HTTP_HOST'] = ''; - if (isset($_SERVER['SERVER_PORT']) == false) $_SERVER['HTTP_PORT'] = ''; + if (isset($_SERVER['SERVER_PORT']) == false) $_SERVER['SERVER_PORT'] = ''; if (isset($_SERVER['HTTP_ORIGIN']) == false) $_SERVER['HTTP_ORIGIN'] = ''; } $_SERVER['HTTP_HOST'] = strtolower($_SERVER['HTTP_HOST']);