[wp-trac] [WordPress Trac] #7849: Fix settings category with apostrophe in metaWeblog.newPost (XML-RPC)

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 8 17:59:04 GMT 2008


#7849: Fix settings category with apostrophe in metaWeblog.newPost (XML-RPC)
-------------------------+--------------------------------------------------
 Reporter:  josephscott  |       Owner:  anonymous
     Type:  defect       |      Status:  new      
 Priority:  normal       |   Milestone:  2.7      
Component:  XML-RPC      |     Version:           
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------
 The problem was originally reported in the iPhone app ticket
 http://iphone.trac.wordpress.org/ticket/44

 When setting a category with an apostrophe in it as part of a
 metaWeblog.newPost XML-RPC call that category gets skipped.  The reason
 for this is that the apostrophe gets escaped twice, first at the XML-RPC
 level and second via prepare when generating the SQL query.

 To fix this I've created a patch that calls stripslashes() on the category
 name before passing it to get_cat_ID().

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


More information about the wp-trac mailing list