posted by stestagg on Mon 16th Apr 2007 11:33
Conversations ]]>. Nice huh. ]]>
Previous ConversationNext Conversation
Comments:
Wow. That broke things.
by stestagg on Mon 16th Apr 2007 11:35 UTC
stestagg
Member since:
2006-06-03

The conversation item was supposed to be a small XML file (6 lines long). With several interesting features. It seems that your text encoding methods are not robust.
I've replaced the angular brackets with curly brackets below for reference:

{?xml version="1.0" encoding="UTF-8" xmlns="http://www.w3.org/1999/xhtml"?}
{my:action GUID="{00000109-0000-0010-8000-00AA006D2EA4}" type="message"}
{my:user name="stestagg" /}
{my:text encoding="UTF-8"}{![CDATA[/me loves the way that a modern, 2GHz machine with lots of ram still sometimes has trouble doing simple operations like enumerating folders. Also, have you ever tried inserting the 'end CDATA triad in an XML doc? here's how: {![CDATA[]]]]}{![CDATA[}]]}. Nice huh. ]]}
{/my:text}
{/my:action}

Reply Score: 2

RE: Wow. That broke things.
by Adam S on Mon 16th Apr 2007 12:15 in reply to "Wow. That broke things. "
Adam S Member since:
2005-04-01

It applies strip_tags. I should probably change it to htmlspecialchars().

Reply Score: 1

RE: Wow. That broke things.
by Adam S on Mon 16th Apr 2007 12:30 in reply to "Wow. That broke things. "
Adam S Member since:
2005-04-01

See next conversation.

Reply Score: 1

RE[2]: Wow. That broke things.
by stestagg on Mon 16th Apr 2007 23:14 in reply to "RE: Wow. That broke things. "
stestagg Member since:
2006-06-03

Thanks. that's nicer ;) .

Ste.

Reply Score: 2