[wp-trac] Re: [WordPress Trac] #4820: Regex fix for $pagelinkedfrom (xmlrpc.php)

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 27 14:05:50 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   |   Resolution:           
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by josephscott):

 It looks like your first item:

 {{{
 $pagelinkedfrom = preg_replace('#&#is', '&', $pagelinkedfrom);
 }}}

 is already being done on 1810 using str_replace:

 {{{
 $pagelinkedfrom = str_replace('&', '&', $pagelinkedfrom);
 }}}

 Is there a specific example of where the current code doesn't work as
 expected?

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


More information about the wp-trac mailing list