From: kink Date: Fri, 20 Dec 2002 11:35:48 +0000 (+0000) Subject: Fix for IIS, thanks Bruce Richardson X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=44827b4d6aa8c8ef7366a0926993fd843ef36343;p=squirrelmail.git 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 --- 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://';