coleifer / micawber

a small library for extracting rich content from urls
http://micawber.readthedocs.org/
MIT License
635 stars 91 forks source link

Limit number of rendered links #16

Closed artscoop closed 11 years ago

artscoop commented 11 years ago

Hello, There is a security concern that is generally not taken care of in oEmbed solutions: if one uses these solutions to provide media display of user input, one has to take care of malicious users filling their input with dozens or hundreds of links. (posted in order to clutter the other viewers' pages) So I wonder if there is a simple way with micawber to limit the number of links parsed. Thanks

coleifer commented 11 years ago

This unfortunately is not easy given the way I've implemented micawber. Perhaps you could just ensure that the inbound text is only so long?