[wp-trac] Re: [WordPress Trac] #4226: missing regex delimiter
WordPress Trac
wp-trac at lists.automattic.com
Sat May 5 02:12:01 GMT 2007
#4226: missing regex delimiter
----------------------------+-----------------------------------------------
Reporter: Mittineague | Owner: rob1n
Type: defect | Status: reopened
Priority: normal | Milestone:
Component: General | Version: 2.1.3
Severity: normal | Resolution:
Keywords: wp-mail, regex |
----------------------------+-----------------------------------------------
Changes (by Mittineague):
* status: closed => reopened
* resolution: invalid =>
Comment:
Perhaps the reformatting (newlines were removed) of the code lines misled.
I have the same lines in the wp-mail.php file in WordPress versions 2.0.7,
2.1, 2.1.1, 2.1.2, and (I think it's the most recent version) 2.1.3
The code should look like more this (extra newlines added)
// 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);
--
Ticket URL: <http://trac.wordpress.org/ticket/4226#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list