lib/onebox/engine.rb in onebox-1.8.87 vs lib/onebox/engine.rb in onebox-1.8.88
- old
+ new
@@ -79,15 +79,10 @@
def data
fail NoMethodError, "Engines need this method defined"
end
def link
- @url.gsub(/['\"<>]/,
- "'" => ''',
- '"' => '"',
- '<' => '<',
- '>' => '>',
- )
+ ::Onebox::Helpers.uri_encode(@url)
end
def always_https?
self.class.always_https?
end