Fixed a bug in displaying email addresses in the message list.
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 8 Feb 2000 12:28:11 +0000 (12:28 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 8 Feb 2000 12:28:11 +0000 (12:28 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@197 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mailbox.php

index f5aba2f..b07e254 100644 (file)
          $emailAddr = ereg_replace("--EMAILEND", "", $emailAddr);
          $from = $emailAddr;
       }
          $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)) {
          $from = $name;
       }
       else if (strlen($emailAddr > 0)) {