lib/onebox/engine/video_onebox.rb in onebox-1.9.20 vs lib/onebox/engine/video_onebox.rb in onebox-1.9.21

- old
+ new

@@ -10,9 +10,14 @@ def always_https? WhitelistedGenericOnebox.host_matches(uri, WhitelistedGenericOnebox.https_hosts) end def to_html + # Fix Dropbox image links + if @url[/^https:\/\/www.dropbox.com\/s\//] + @url.sub!("https://www.dropbox.com", "https://dl.dropboxusercontent.com") + end + escaped_url = ::Onebox::Helpers.normalize_url_for_output(@url) <<-HTML <div class="onebox video-onebox"> <video width='100%' height='100%' controls> <source src='#{escaped_url}'>