lib/onebox/engine/steam_store_onebox.rb in onebox-1.8.4 vs lib/onebox/engine/steam_store_onebox.rb in onebox-1.8.5
- old
+ new
@@ -20,10 +20,10 @@
</div>
HTML
end
def to_html
- iframe_url = @url.gsub('/app/', '/widget/')
+ iframe_url = @url[/https?:\/\/store\.steampowered\.com\/app\/\d+/].gsub("/app/", "/widget/")
escaped_src = ::Onebox::Helpers.normalize_url_for_output(iframe_url)
<<-HTML
<iframe src='#{escaped_src}'
frameborder='0'