[wp-trac] Re: [WordPress Trac] #7771: XMLRPC api stripping leading angle brackets

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 2 17:15:59 GMT 2008


#7771: XMLRPC api stripping leading angle brackets
-------------------------+--------------------------------------------------
 Reporter:  midrangeman  |        Owner:  anonymous
     Type:  defect       |       Status:  new      
 Priority:  high         |    Milestone:           
Component:  XML-RPC      |      Version:  2.6.1    
 Severity:  major        |   Resolution:           
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment (by josephscott):

 I have tried to confirm this and so far no luck.  Both 2.6.2 release and
 -trunk added posts with a leading < and it came across fine.  I kept the
 post content very basic:

 {{{
 <p>Hello World!</p>
 }}}

 The entire XML-RPC request went across the wire as :

 {{{
 <?xml version="1.0"?>
 <methodCall>
 <methodName>metaWeblog.newPost</methodName>
 <params>
 <param><value><int>1</int></value></param>
 <param><value><string>******username********</string></value></param>
 <param><value><string>******password********</string></value></param>
 <param><value><struct>
   <member><name>title</name><value><string>script angle bracket
 post</string></value></member>
   <member><name>description</name><value><string>&lt;p&gt;this is a test
 with an angle bracket&lt;/p&gt;</string></value></member>
 </struct></value></param>
 <param><value><boolean>0</boolean></value></param>
 </params></methodCall>
 }}}

 It then showed in WP normally, with the paragraph tags (including
 brackets) intact.

 I'm happy to get this sorted out, but the first thing is figuring out how
 to recreate the problem.  Anyone who is having this problem please let me
 know, I'm usually on #wordpress-dev on FreeNode (username - josephscott).

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


More information about the wp-trac mailing list