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

- old
+ new

@@ -18,10 +18,10 @@ end def raw_template(m) "https://gitlab.com/#{m[:user]}/#{m[:repo]}/raw/#{m[:sha1]}/#{m[:file]}" end def title - Sanitize.fragment(URI.unescape(link).sub(/^https?\:\/\/gitlab\.com\//, '')) + Sanitize.fragment(Onebox::Helpers.uri_unencode(link).sub(/^https?\:\/\/gitlab\.com\//, '')) end end end end