Changeset 18717 for trunk/wp-includes/pluggable.php
- Timestamp:
- 09/19/2011 02:30:50 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r18639 r18717 339 339 // Break $recipient into name and address parts if in the format "Foo <bar@baz.com>" 340 340 $recipient_name = ''; 341 if( preg_match( '/(. +)\s?<(.+)>/', $recipient, $matches ) ) {341 if( preg_match( '/(.*)<(.+)>/', $recipient, $matches ) ) { 342 342 if ( count( $matches ) == 3 ) { 343 343 $recipient_name = $matches[1]; … … 345 345 } 346 346 } 347 $phpmailer->AddAddress( trim( $recipient ), $recipient_name);347 $phpmailer->AddAddress( $recipient, $recipient_name); 348 348 } catch ( phpmailerException $e ) { 349 349 continue; … … 361 361 // Break $recipient into name and address parts if in the format "Foo <bar@baz.com>" 362 362 $recipient_name = ''; 363 if( preg_match( '/(. +)\s?<(.+)>/', $recipient, $matches ) ) {363 if( preg_match( '/(.*)<(.+)>/', $recipient, $matches ) ) { 364 364 if ( count( $matches ) == 3 ) { 365 365 $recipient_name = $matches[1]; … … 367 367 } 368 368 } 369 $phpmailer->AddCc( trim($recipient), $recipient_name );369 $phpmailer->AddCc( $recipient, $recipient_name ); 370 370 } catch ( phpmailerException $e ) { 371 371 continue; … … 379 379 // Break $recipient into name and address parts if in the format "Foo <bar@baz.com>" 380 380 $recipient_name = ''; 381 if( preg_match( '/(. +)\s?<(.+)>/', $recipient, $matches ) ) {381 if( preg_match( '/(.*)<(.+)>/', $recipient, $matches ) ) { 382 382 if ( count( $matches ) == 3 ) { 383 383 $recipient_name = $matches[1]; … … 385 385 } 386 386 } 387 $phpmailer->AddBcc( trim($recipient), $recipient_name );387 $phpmailer->AddBcc( $recipient, $recipient_name ); 388 388 } catch ( phpmailerException $e ) { 389 389 continue;
Note: See TracChangeset
for help on using the changeset viewer.