Modify

#612 closed defect (fixed)

Twitter: HTML entities like &lt; and &gt; aren't unescaped to < and >

Reported by: avarab@… Owned by: geert
Priority: normal Milestone:
Component: Twitter Version: 1.2.6
Keywords: Cc:
IRC client+version: Client-independent Operating System: Linux
OS version/distro:

Description

Twitter's API returns &lt; and &gt; for <>, and maybe &amp; for &, although I don't think so. It differ from identi.ca in this regard.

Presumably this is some measure to avoid having silly third party websites that consume the API shooting themselves in the foot.

Bitlbee should s/&lt;/</g s/&gt;/>/g in the client before displaying it on IRC.

Attachments (0)

Change History (4)

comment:1 Changed at 2010-05-08T14:04:50Z by wilmer

Resolution: fixed
Status: newclosed

Thanks for the report. Luckily this is already taken care of: changeset:devel,564.

It seems that this is indeed somewhat related to protecting the ignorant. I noticed that when I tweet something like "& &amp; &amp;amp; < &lt;" via their web interface, the result is simply "& & &amp; < <".

BitlBee should do the right thing now, in both directions. Wait for 1.2.7 which should come at least next month (in time before the OAuth deadline).

comment:2 Changed at 2010-05-08T14:06:11Z by wilmer

I see your remark about identi.ca here now. Ugh. I hope this is not going to get messy when we add non-Twitter support to the module.

comment:3 in reply to:  1 Changed at 2010-05-08T14:08:56Z by anonymous

Replying to wilmer:

Thanks for the report. Luckily this is already taken care of: changeset:devel,564.

It seems that this is indeed somewhat related to protecting the ignorant. I noticed that when I tweet something like "& &amp; &amp;amp; < &lt;" via their web interface, the result is simply "& & &amp; < <".

BitlBee should do the right thing now, in both directions. Wait for 1.2.7 which should come at least next month (in time before the OAuth deadline).

Thanks! And sorry for the duplicate, I tried searching the bugtracker before I filed but didn't find anything.

Looking forward to 1.2.7. Thanks for the Twitter support.

Replying to wilmer:

I see your remark about identi.ca here now. Ugh. I hope this is not going to get messy when we add non-Twitter support to the module.

It shouldn't be a problem. I've written a bidirectional Twitter <-> Identi.ca syncing script and &lt; and &gt; were the only difference in the two APIs that I noticed. I was using Perl's Net::Twitter though, so that may have hid some nastyness.

comment:4 Changed at 2010-05-08T14:10:38Z by wilmer

No problem, it's entirely possible that there was no other bug report filed for this yet; it was a one line change as you can see so filing a bug for it myself also seemed like a waste of time. :-)

Modify Ticket

Action
as closed The owner will remain geert.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.