Fixed display error in From-lines of the form: "Doe, John" <john@doe.org>
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 28 Jan 2002 23:10:35 +0000 (23:10 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 28 Jan 2002 23:10:35 +0000 (23:10 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2272 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_general.php

index 71af54a..a5955e6 100755 (executable)
@@ -360,10 +360,10 @@ function sqimap_find_email ($string) {
  */
 function sqimap_find_displayable_name ($string) {
     $string = trim($string);
-    
+
     if ( ereg('^(.+)<.*>', $string, $regs) ) {
         $orig_string = $string;
-        $string = ereg_replace ('"', '', $regs[1] );
+        $string = str_replace ('"', '', $regs[1] );
         if (trim($string) == '') {
              $string = sqimap_find_email($orig_string);
         }
@@ -383,7 +383,7 @@ function sqimap_find_displayable_name ($string) {
         }
     }
     else {
-        $string = sqimap_find_email($string);
+        $string = str_replace ('"', '', sqimap_find_email($string));
     }
 
     return trim($string);