From 2f7bda0a8c516559772a49b6ea3bc936be178233 Mon Sep 17 00:00:00 2001 From: kink Date: Mon, 28 Jan 2002 23:10:35 +0000 Subject: [PATCH] Fixed display error in From-lines of the form: "Doe, John" git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2272 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_general.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/imap_general.php b/functions/imap_general.php index 71af54aa..a5955e6c 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -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); -- 2.25.1