Fixed a bug that was causing problems deleting messages with SM through SSL.
[squirrelmail.git] / functions / strings.php
index ff4b7c7b93b18eebb53edfdf2d14a6e167e78489..6787c40d93c523be94adc2b5fab68213ce623803 100644 (file)
    }
 
    /* SquirrelMail version number -- DO NOT CHANGE */
-   $version = "0.6pre1 (cvs)";
+   $version = "1.0pre1 (cvs)";
 
 
    function find_mailbox_name ($mailbox) {
       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);
               }
           }