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

WordPress Trac wp-trac at lists.automattic.com
Sat May 5 00:00:22 GMT 2007


#4226: missing regex delimiter
-------------------------+--------------------------------------------------
 Reporter:  Mittineague  |       Owner:  anonymous     
     Type:  defect       |      Status:  new           
 Priority:  normal       |   Milestone:  2.4           
Component:  General      |     Version:  2.1.3         
 Severity:  normal       |    Keywords:  wp-mail, regex
-------------------------+--------------------------------------------------
 E_WARNING
 preg_match() [<a href='function.preg-match'>function.preg-match</a>]:
 Delimiter
 must not be alphanumeric or backslash at
 /home/.firefly/mittineague/mittineague.com/blog/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>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list