Fixed a bug in displaying email addresses in the message list.
[squirrelmail.git] / functions / mailbox.php
index f5aba2f..b07e254 100644 (file)
          $emailAddr = ereg_replace("--EMAILEND", "", $emailAddr);
          $from = $emailAddr;
       }
-      else if (strlen($name) > 0) {
+      else if (strlen(trim($name)) > 0) {
          $from = $name;
       }
       else if (strlen($emailAddr > 0)) {