Fix bug HTTPS detection (issue with IIS)

This commit is contained in:
Frédéric Guillot
2014-09-08 16:49:54 +02:00
parent 532ea3b868
commit bc0fa40b24
5 changed files with 29 additions and 5 deletions

View File

@@ -3,6 +3,7 @@
namespace Auth;
use Core\Security;
use Core\Tool;
/**
* RememberMe model
@@ -309,7 +310,7 @@ class RememberMe extends Base
$expiration,
BASE_URL_DIRECTORY,
null,
! empty($_SERVER['HTTPS']),
Tool::isHTTPS(),
true
);
}
@@ -342,7 +343,7 @@ class RememberMe extends Base
time() - 3600,
BASE_URL_DIRECTORY,
null,
! empty($_SERVER['HTTPS']),
Tool::isHTTPS(),
true
);
}