You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This addition to app/models/post.rb produces some false-positives. It prevents the submission of a link that has a blacklisted file extension anywhere in the URL at all, not just at the end of it.
This works to block direct image links like foo.com/bar.gif, but it also can block a legitimate link to an article which just happens to have 'gif' in the post title.
This addition to
app/models/post.rb
produces some false-positives. It prevents the submission of a link that has a blacklisted file extension anywhere in the URL at all, not just at the end of it.This works to block direct image links like
foo.com/bar.gif
, but it also can block a legitimate link to an article which just happens to have 'gif' in the post title.Try submitting this post: http://thelist.io/posts/new?u=http://nautil.us/blog/the-math-trick-behind-mp3s-jpegs-and-homer-simpsons-face&t=The%20Math%20Trick%20Behind%20MP3s,%20JPEGs,%20and%20Homer%20Simpson%E2%80%99s%20Face
Solution: Only block links with a blacklisted file extension located at the end of the URL, prefixed with a
.
The text was updated successfully, but these errors were encountered: