Browse Source

Fixed a bug that was causing problems deleting messages with SM through SSL.

mattphillips 25 years ago
parent
commit
5a93799a67
1 changed files with 2 additions and 1 deletions
  1. 2 1
      functions/strings.php

+ 2 - 1
functions/strings.php

@@ -248,7 +248,8 @@
       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);
               }
           }