[ #500564 ] "" in From header causes empty From
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 22 Jan 2002 17:53:52 +0000 (17:53 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 22 Jan 2002 17:53:52 +0000 (17:53 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2212 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_general.php

index 81c0d94..71af54a 100755 (executable)
@@ -362,7 +362,11 @@ function sqimap_find_displayable_name ($string) {
     $string = trim($string);
     
     if ( ereg('^(.+)<.*>', $string, $regs) ) {
+        $orig_string = $string;
         $string = ereg_replace ('"', '', $regs[1] );
+        if (trim($string) == '') {
+             $string = sqimap_find_email($orig_string);
+        }
         if( $string == '' || $string == ' ' ){
             $string = '&nbsp';
         }