Skip to content

Commit

Permalink
Merge pull request #215 from riking/patch-1
Browse files Browse the repository at this point in the history
Make dropbox image matching more strict
  • Loading branch information
eviltrout committed Jun 20, 2014
2 parents 0f7f724 + fcb1f3b commit dd6c3b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/onebox/engine/image_onebox.rb
Expand Up @@ -7,7 +7,7 @@ class ImageOnebox

def to_html
# Fix Dropbox image links
if /^https:\/\/www.dropbox.com/.match @url
if /^https:\/\/www.dropbox.com\/s\//.match @url
@url.gsub!("https://www.dropbox.com","https://dl.dropboxusercontent.com")
end

Expand Down

0 comments on commit dd6c3b5

Please sign in to comment.