mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Update secure_login.php
This commit is contained in:
parent
834f939fbe
commit
8a5469abcd
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ function prevent_get_csrf () {
|
||||||
if (file_exists('/usr/local/vesta/conf_web/dont_check_csrf')) return;
|
if (file_exists('/usr/local/vesta/conf_web/dont_check_csrf')) return;
|
||||||
if ($_SERVER['REQUEST_METHOD'] == "GET") {
|
if ($_SERVER['REQUEST_METHOD'] == "GET") {
|
||||||
if (isset($_GET[$login_url])) return;
|
if (isset($_GET[$login_url])) return;
|
||||||
if ($_SERVER['REQUEST_URI']=="" || $_SERVER['REQUEST_URI']=="/" || $_SERVER['REQUEST_URI']=="/login/" || $_SERVER['REQUEST_URI']=="/list/web/") return;
|
if ($_SERVER['REQUEST_URI']=="" || $_SERVER['REQUEST_URI']=="/" || $_SERVER['REQUEST_URI']=="/login/" || $_SERVER['REQUEST_URI']=="/list/user/" || $_SERVER['REQUEST_URI']=="/list/web/") return;
|
||||||
}
|
}
|
||||||
if (isset($_SERVER['HTTP_HOST']) == false) return;
|
if (isset($_SERVER['HTTP_HOST']) == false) return;
|
||||||
if (isset($_SERVER['SERVER_PORT']) == false) return;
|
if (isset($_SERVER['SERVER_PORT']) == false) return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue