From bc0fa40b24f73ccce067f2d23e9aae1335c46694 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 8 Sep 2014 16:49:54 +0200 Subject: Fix bug HTTPS detection (issue with IIS) --- app/Auth/RememberMe.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/Auth') diff --git a/app/Auth/RememberMe.php b/app/Auth/RememberMe.php index 3cf6fc86..50e0bcef 100644 --- a/app/Auth/RememberMe.php +++ b/app/Auth/RememberMe.php @@ -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 ); } -- cgit v1.2.3