Make all comparisons case insensitive for forwarded protocol in get_location()
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 10 Jul 2007 07:54:42 +0000 (07:54 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 10 Jul 2007 07:54:42 +0000 (07:54 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12518 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/strings.php

index 650c0f791d2a92a1fb13cb92a99346271fef723d..14015cc0c6716af5d22bfb861cbf27bcea9c6a73 100644 (file)
@@ -523,7 +523,7 @@ function get_location () {
         if (sqgetGlobalVar('SERVER_PORT', $server_port, SQ_SERVER)) {
             if (($server_port != 80 && $proto == 'http://') ||
                 ($server_port != 443 && $proto == 'https://' &&
-                 $forwarded_proto != 'https')) {
+                 strcasecmp($forwarded_proto, 'https') !== 0)) {
                 $port = sprintf(':%d', $server_port);
             }
         }