[wp-xmlrpc] wrapping faultstring value with CDATA

Joe Cheng Joe.Cheng at microsoft.com
Mon Jan 14 17:17:57 GMT 2008


If you do that, then there's no reason to worry about CDATA.

As a side note, I've noticed that PHP emits warnings directly to the response stream, and this even applies to XML-RPC requests which obviously results in malformed XML (as the warnings generally happen before the XML payload begins). I've seen this in a few user logs for Windows Live Writer, although I can't remember at the moment what the actual warnings were for. This isn't too much of a problem for us as usually the warnings are fatal anyway, so we're just swapping whatever the real error message is for our generic "malformed response" error. But something for you to be aware of nonetheless.

-----Original Message-----
From: wp-xmlrpc-bounces at lists.automattic.com [mailto:wp-xmlrpc-bounces at lists.automattic.com] On Behalf Of Joseph Scott
Sent: Monday, January 14, 2008 8:52 AM
To: wp-xmlrpc at lists.automattic.com
Subject: Re: [wp-xmlrpc] wrapping faultstring value with CDATA


On Jan 14, 2008, at 9:23 AM, Joe Cheng wrote:

> Is $this->message XML-escaped today? What happens, for example, if the
> error message contains the '&' character--will it be properly escaped
> to "&"?

My gut response was going to be yet, but then I tried it.  Turns out the answer is no :-(

I've created a ticket for this issue: http://trac.wordpress.org/
ticket/5666

--
Joseph Scott
http://joseph.randomnetworks.com/


_______________________________________________
wp-xmlrpc mailing list
wp-xmlrpc at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-xmlrpc


More information about the wp-xmlrpc mailing list