lib/onebox/engine/image_onebox.rb in onebox-1.6.3 vs lib/onebox/engine/image_onebox.rb in onebox-1.6.4

- old
+ new

@@ -13,10 +13,11 @@ # Fix Dropbox image links if /^https:\/\/www.dropbox.com\/s\//.match @url @url.gsub!("https://www.dropbox.com","https://dl.dropboxusercontent.com") end - "<a href='#{@url}' target='_blank'><img src='#{@url}'></a>" + escaped = url.gsub(/'/, "%27") + "<a href='#{escaped}' target='_blank'><img src='#{escaped}'></a>" end end end end