[wp-trac] Re: [WordPress Trac] #4226: missing regex delimiter

WordPress Trac wp-trac at lists.automattic.com
Sat May 5 02:53:37 GMT 2007


#4226: missing regex delimiter
----------------------------+-----------------------------------------------
 Reporter:  Mittineague     |        Owner:  rob1n 
     Type:  defect          |       Status:  closed
 Priority:  normal          |    Milestone:  2.2   
Component:  General         |      Version:  2.1.3 
 Severity:  normal          |   Resolution:  fixed 
 Keywords:  wp-mail, regex  |  
----------------------------+-----------------------------------------------
Old description:

> E_WARNING
> preg_match() [<a href='function.preg-match'>function.preg-match</a>]:
> Delimiter
> must not be alphanumeric or backslash at
> /path/to/wordpress/wp-mail.php (59)
> timed at 04-May-2007 19:23:34
>
>                         // Set the author using the email address (To or
> Reply-To, the last used)
>                         // otherwise use the site admin
>                         if (preg_match('/From: /', $line) | preg_match
> ('Reply-To: /', $line))  {
>                                 $author=trim($line);
>
> Should be  .... '/Reply ....

New description:

 E_WARNING
 preg_match() [<a href='function.preg-match'>function.preg-match</a>]:
 Delimiter
 must not be alphanumeric or backslash at
 /path/to/wordpress/wp-mail.php (59)
 timed at 04-May-2007 19:23:34
 {{{
 // Set the author using the email address (To or Reply-To, the last used)
 // otherwise use the site admin
 if (preg_match('/From: /', $line) | preg_match('Reply-To: /', $line))  {
         $author=trim($line);
 }}}
 Should be  .... '/Reply ....

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4226#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list