lib/onebox/helpers.rb in onebox-1.8.82 vs lib/onebox/helpers.rb in onebox-1.8.83
- old
+ new
@@ -162,9 +162,10 @@
def self.normalize_url_for_output(url)
return "" unless url
url = url.dup
# expect properly encoded url, remove any unsafe chars
+ url.gsub!(' ', '%20')
url.gsub!("'", "'")
url.gsub!('"', """)
url.gsub!(/[^\w\-`.~:\/?#\[\]@!$&'\(\)*+,;=%]/, "")
url
end