[wp-trac] [WordPress Trac] #5804: XML-RPC not handling & in URLs properly.

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 9 13:43:56 GMT 2008


#5804: XML-RPC not handling & in URLs properly.
---------------------+------------------------------------------------------
 Reporter:  denney   |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:  2.6      
Component:  XML-RPC  |     Version:  2.3      
 Severity:  normal   |    Keywords:           
---------------------+------------------------------------------------------
 It seems the XML-RPC interface doesn't handle & signs in URL's properly
 when performing Pingbacks.

 I'm trying to send a pingback from one site to another (that doesn't run
 Wordpress).

 The URL for the Pingback is:
 {{{
 http://dev.mantrasoftware.net/forum/viewtopic.php?f=4&t=74
 }}}

 but the received XML is:

 {{{
 <?xml version="1.0"?>
 <methodCall>
 <methodName>pingback.ping</methodName>
 <params>
 <param><value><string>http://dev.mantrasoftware.net/wordpress/?p=11</string></value></param>
 <param><value><string>http://dev.mantrasoftware.net/forum/viewtopic.php?f=4&amp;amp</string></value></param>
 </params></methodCall>
 }}}

 As you can see, it's doing something funny with the & signs... I'm trying
 to figure out what's wrong but haven't come across anything yet.

 I believe it has something to do with the "IXR_Value:getXml()" function...
 More specifically, the following lines:

 {{{
             case 'string':
                 return
 '<string>'.htmlspecialchars($this->data).'</string>';
                 break;
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5804>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list