Fixed a bug that was causing problems deleting messages with SM through SSL.
authormattphillips <mattphillips@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 8 Nov 2000 15:21:36 +0000 (15:21 +0000)
committermattphillips <mattphillips@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 8 Nov 2000 15:21:36 +0000 (15:21 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@842 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/strings.php

index 5a8405e12ae0ec2d60366d89907e880c170d303b..6787c40d93c523be94adc2b5fab68213ce623803 100644 (file)
       if (! strstr($host, ':'))
       {
           if (isset($SERVER_PORT)) {
-              if ($SERVER_PORT != 80) {
+              if (($SERVER_PORT != 80 && $proto == "http://")
+                      || ($SERVER_PORT != 443 && $proto == "https://")) {
                   $port = sprintf(':%d', $SERVER_PORT);
               }
           }