Some short URL causes infinity loop
![]() ![]() |
Hi, I've found that the URL expansion gets into infinity loop of calling LongUrlPlease API when it meets a certain kind of short URL in tweets, and it can cause browser freeze at the worst case. Reproducible URLs are:
The former URL is shrunk with bit.ly and added a analysis option "+". The LongUrlPlease API returns the following JSON response for this URL. {"http:\/\/bit.ly\/90ZgBP ": null} Function "expand_urls" cannot interpret the response because of two reasons:
The latter URL is not shrunk but is a file on bit.ly itself. It also causes infinity loop after all. What's worse is that my Firefox gets unresponsive and frozen in this case. As far as I can see, the solution might be:
Thank you for your great work and kind consideration. |
![]() ![]() |
Thanks for reporting this! Probably the most useful bug post ever. I'll try to fix this soon. |

