[wp-trac] Re: [WordPress Trac] #4226: missing regex delimiter
WordPress Trac
wp-trac at lists.automattic.com
Sat May 5 00:04:19 GMT 2007
#4226: missing regex delimiter
----------------------------+-----------------------------------------------
Reporter: Mittineague | Owner: rob1n
Type: defect | Status: assigned
Priority: normal | Milestone: 2.3
Component: General | Version: 2.1.3
Severity: normal | Resolution:
Keywords: wp-mail, regex |
----------------------------+-----------------------------------------------
Changes (by rob1n):
* owner: anonymous => rob1n
* status: new => assigned
* milestone: 2.4 => 2.3
Old description:
> 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 ....
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 ....
Comment:
No problem.
--
Ticket URL: <http://trac.wordpress.org/ticket/4226#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list