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

- old
+ new

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