mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
Fixing typo in secure_login.php
Thanks to @gathlete - https://forum.myvestacp.com/viewtopic.php?t=928
This commit is contained in:
parent
add9c5c5e7
commit
c3720e5d5e
1 changed files with 1 additions and 1 deletions
|
@ -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']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue