lib/onebox/engine/amazon_onebox.rb in onebox-1.9.24 vs lib/onebox/engine/amazon_onebox.rb in onebox-1.9.25

- old
+ new

@@ -13,10 +13,10 @@ always_https matches_regexp(/^https?:\/\/(?:www\.)?(?:smile\.)?(amazon|amzn)\.(?<tld>com|ca|de|it|es|fr|co\.jp|co\.uk|cn|in|com\.br|com\.mx)\//) def url if match && match[:id] - return "https://www.amazon.#{tld}/gp/aw/d/#{URI::encode(match[:id])}" + return "https://www.amazon.#{tld}/gp/aw/d/#{Onebox::Helpers.uri_encode(match[:id])}" end @url end