[Adium-devl] Problem with LMX for messages containing >
Graham Booker
gbooker at cod3r.com
Thu Mar 19 23:09:02 UTC 2009
On Mar 19, 2009, at 12:50 PM, Zachary West wrote:
> Hi,
> I've been having some problems with the LMX / context parser for
> messages containing >.
>
> The XML:
>
> <message time="2009-03-19T13:27:21-04:00" sender="zacwest"><div><a
> href="https://twitter.com/iraphael/status/1355525477">@iraphael</a> To
> shorten the URL, select it and hit Edit > Replace with shortened URL.
> If you don't, <a href="http://twitter.com">twitter.com</a> shortens
> out of the 140 we send (<a
> href="twitterreply://136@zacwest?status=1355539419">@</a>, <a
> href="https://twitter.com/zacwest/status/1355539419">#</a>)</div></
> message>
>
Invalid XML. The > should be a >
> gets read in as:
>
> <div><a> href="https://twitter.com/iraphael/status/
> 1355525477">@iraphael</a>>
> Replace with shortened URL. If you don't, <a
> href="http://twitter.com">twitter.com</a> shortens out of the 140 we
> send (<a href="twitterreply://136@zacwest?status=1355539419">@</a>,
> <a href="https://twitter.com/zacwest/status/1355539419">#</a>)</div>
>
> Note the messed-up <a>, and the hugely-missing chunk of text.
>
> This XML:
>
> <message time="2009-03-19T13:46:02-04:00" sender="zacwest"><div><a
> href="hello"><span style="font-family: Helvetica; font-size:
> 12pt;">http://cnn.com</span></a><span style="font-family: Helvetica;
> font-size: 12pt;"> testing > meow meow</span></div></message>
>
Again, invalid XML. The > should be a >
> gets read in as:
>
> <div><a href="hello"><span style="font-family: Helvetica; font-size:
> 12pt;">http://cnn.com</span></a><span style="font-family: Helvetica;
> font-size: 12pt;"> meow meow</span></div>
>
> So, needless to say, the above messages are not being read in
> properly, and both feature >. Problem with LMX?
>
Problem with the output not being converted to XML properly, or a
sanity check not being done.
> Zac
- Graham
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3632 bytes
Desc: not available
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20090319/8893ea06/attachment.p7s>
More information about the devel
mailing list