Revision: 12519
http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=12519&view=rev
Author: pdontthink
Date: 2007-07-10 00:54:42 -0700 (Tue, 10 Jul 2007)
Log Message:
-----------
Make all comparisons case insensitive for forwarded protocol in get_location()
Modified Paths:
--------------
branches/SM-1_4-STABLE/squirrelmail/functions/strings.php
Modified: branches/SM-1_4-STABLE/squirrelmail/functions/strings.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/functions/strings.php 2007-07-10
07:54:42 UTC (rev 12518)
+++ branches/SM-1_4-STABLE/squirrelmail/functions/strings.php 2007-07-10
07:54:42 UTC (rev 12519)
@@ -327,7 +327,7 @@
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);
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
|