Handy place to show error reporting values - can use this as a tool for support requests
[squirrelmail.git] / 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);
             }
         }