From 44827b4d6aa8c8ef7366a0926993fd843ef36343 Mon Sep 17 00:00:00 2001 From: kink Date: Fri, 20 Dec 2002 11:35:48 +0000 Subject: [PATCH] Fix for IIS, thanks Bruce Richardson git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4288 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/strings.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/strings.php b/functions/strings.php index b0c29df0..1b62cffb 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -194,12 +194,13 @@ function get_location () { /* * If you have 'SSLOptions +StdEnvVars' in your apache config - * OR if you have HTTPS in your HTTP_SERVER_VARS + * OR if you have HTTPS=on in your HTTP_SERVER_VARS * OR if you are on port 443 */ $getEnvVar = getenv('HTTPS'); if ((isset($getEnvVar) && !strcasecmp($getEnvVar, 'on')) || - (isset($_SERVER['HTTPS'])) || + (isset($_SERVER['HTTPS']) && + !strcasecmp($_SERVER['HTTPS'], 'on')) || (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443)) { $proto = 'https://'; -- 2.25.1