瀏覽代碼

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

mattphillips 25 年之前
父節點
當前提交
5a93799a67
共有 1 個文件被更改,包括 2 次插入1 次删除
  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);
               }
           }