From 8c64fc5a22414d3c05fd19cc2aa921a8a89559a9 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Tue, 10 Jul 2007 07:54:42 +0000 Subject: [PATCH] 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 --- functions/strings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.25.1