[wp-trac] [WordPress Trac] #4820: Regex fix for $pagelinkedfrom
(xmlrpc.php)
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 26 19:55:52 GMT 2007
#4820: Regex fix for $pagelinkedfrom (xmlrpc.php)
---------------------+------------------------------------------------------
Reporter: tenpura | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.3
Component: XML-RPC | Version: 2.3
Severity: normal | Keywords:
---------------------+------------------------------------------------------
xmlrpc.php line 1937:
{{{
$pagelinkedfrom = preg_replace('#&([^amp\;])#is', '&$1',
$pagelinkedfrom);
}}}
doesn't seem to work like it was intended.
It should be something like:
{{{
$pagelinkedfrom = preg_replace('#amp;#is', '&', $pagelinkedfrom);
$pagelinkedfrom = preg_replace('#&(.)#is', '&$1', $pagelinkedfrom);
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/4820>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list