[Standards] <[CDATA[ in XMPP

Robin Redeker elmex at x-paste.de
Tue Jul 31 12:42:43 UTC 2007


A small mistake I made:

On Tue, Jul 31, 2007 at 02:02:32PM +0200, Robin Redeker wrote:
> On Mon, Jul 30, 2007 at 06:49:45PM -0700, Rachel Blackman wrote:

>    stream->send (
>       "<message><body><![CDATA["
Here:
>       + chatwindow->get_message_from_user
>       + "]]></body></message>"
>    );
> 

>    data = sprintf (
>       "<body><![CDATA[%d: %s/%s]]></body>",
And here:
>       get_int, chatsession->get_from_nick, chatsession->get_to_nick
>    );

There one should still have to take care that no string with "]]>" is
concationated into the CDATA block, as that would end the CDATA block.


R



More information about the Standards mailing list