Ticket #17305: 17305.patch
| File 17305.patch, 670 bytes (added by , 15 years ago) |
|---|
-
wp-includes/pluggable.php
401 401 402 402 foreach ( (array) $to as $recipient ) { 403 403 try { 404 // Break $recipient into name and address parts if in the format "Foo <bar@baz.com>" 405 $recipient_name = ''; 406 if( preg_match( '/(.+)\s?<(.+)>/', $recipient, $matches ) ) { 407 if ( count( $matches ) == 3 ) { 408 $recipient_name = $matches[1]; 409 $recipient = $matches[2]; 410 } 411 } 404 412 $phpmailer->AddAddress( trim( $recipient ) ); 405 413 } catch ( phpmailerException $e ) { 406 414 continue;