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)