浏览代码

Fixed a bug in displaying email addresses in the message list.

Luke Ehresman 25 年之前
父节点
当前提交
021a919842
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/mailbox.php

+ 1 - 1
functions/mailbox.php

@@ -181,7 +181,7 @@
          $emailAddr = ereg_replace("--EMAILEND", "", $emailAddr);
          $emailAddr = ereg_replace("--EMAILEND", "", $emailAddr);
          $from = $emailAddr;
          $from = $emailAddr;
       }
       }
-      else if (strlen($name) > 0) {
+      else if (strlen(trim($name)) > 0) {
          $from = $name;
          $from = $name;
       }
       }
       else if (strlen($emailAddr > 0)) {
       else if (strlen($emailAddr > 0)) {