Fix #2488 soundcloud embedding

This commit is contained in:
Vittorio Cuculo 2011-12-19 09:50:39 +01:00
parent bbfb47b6a3
commit 0e77fcb084
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ module OEmbedHelper
else
end
return html.gsub('http', 'https').html_safe
return html.gsub('http://', 'https://').html_safe
end
def link_to_oembed_image(cache, prefix = 'thumbnail_')

View file

@ -109,7 +109,7 @@ describe OEmbedHelper do
real_data = data['oembed_data']
cache = OEmbedCache.new(:url => data['link_url'])
cache.data = real_data
formatted = o_embed_html(cache).gsub('https', 'http')
formatted = o_embed_html(cache).gsub('https://', 'http://')
case type
when 'photo'
formatted.should =~ /#{data['oembed_data']['url']}/