From 092d4f2c0928f0da88c66dc0ac20e6256dcdb076 Mon Sep 17 00:00:00 2001 From: kink Date: Tue, 22 Jan 2002 17:53:52 +0000 Subject: [PATCH] [ #500564 ] "" in From header causes empty From git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2212 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_general.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/imap_general.php b/functions/imap_general.php index 81c0d942..71af54aa 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -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 = ' '; } -- 2.25.1