lib/onebox/helpers.rb in onebox-1.8.92 vs lib/onebox/helpers.rb in onebox-1.8.93

- old
+ new

@@ -167,10 +167,10 @@ url = url.dup # expect properly encoded url, remove any unsafe chars url.gsub!(' ', '%20') url.gsub!("'", "'") url.gsub!('"', """) - url.gsub!(/[^\w\-`.~:\/?#\[\]@!$&'\(\)*+,;=%]/, "") + url.gsub!(/[^\w\-`.~:\/?#\[\]@!$&'\(\)*+,;=%\p{M}’]/, "") url end def self.get_absolute_image_url(src, url) if src && !!(src =~ /^\/\//)