From: pdontthink Date: Tue, 10 Jul 2007 07:54:42 +0000 (+0000) Subject: Make all comparisons case insensitive for forwarded protocol in get_location() X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=8c64fc5a22414d3c05fd19cc2aa921a8a89559a9 Make all comparisons case insensitive for forwarded protocol in get_location() git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12518 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/strings.php b/functions/strings.php index 650c0f79..14015cc0 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -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); } }