mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Update secure_login.php
This commit is contained in:
parent
f3988e5ccb
commit
0423d9a5e4
1 changed files with 4 additions and 1 deletions
|
@ -21,7 +21,10 @@ if ($login_url_skip==0) {
|
|||
if (file_exists('/usr/local/vesta/web/inc/login_url.php')) {
|
||||
require_once('/usr/local/vesta/web/inc/login_url.php');
|
||||
if (isset($_GET[$login_url])) {
|
||||
setcookie($login_url, '1', time() + 31536000, '/', $_SERVER['HTTP_HOST'], true);
|
||||
$Domain=$_SERVER['HTTP_HOST'];
|
||||
$Port = strpos($Domain, ':');
|
||||
if ($Port !== false) $Domain = substr($Domain, 0, $Port);
|
||||
setcookie($login_url, '1', time() + 31536000, '/', $Domain, true);
|
||||
header ("Location: /login/");
|
||||
exit;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue