From 5735e0df75374fea2a8efa660e43fc8e27495592 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Sun, 19 Jun 2011 00:56:52 +0100 Subject: [PATCH] Fix redirection to https:// links --- source/lib/SihnonFramework/Main.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/SihnonFramework/Main.class.php b/source/lib/SihnonFramework/Main.class.php index d236422..c473aa5 100644 --- a/source/lib/SihnonFramework/Main.class.php +++ b/source/lib/SihnonFramework/Main.class.php @@ -91,7 +91,7 @@ class SihnonFramework_Main { } public function absoluteUrl($relative_url) { - $secure = isset($_SERVER['secure']); + $secure = isset($_SERVER['SECURE']); $port = $_SERVER['SERVER_PORT']; return 'http' . ($secure ? 's' : '') . '://' . $_SERVER['HTTP_HOST'] . (($port == 80 || ($secure && $port == 443)) ? '' : ':' . $port)