Browse Source

[ #500564 ] "" in From header causes empty From

Thijs Kinkhorst 23 years ago
parent
commit
52716a0ed3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      functions/imap_general.php

+ 4 - 0
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 = '&nbsp';
         }