lib/onebox/engine/github_blob_onebox.rb in onebox-1.8.32 vs lib/onebox/engine/github_blob_onebox.rb in onebox-1.8.33

- old
+ new

@@ -188,10 +188,10 @@ end end def data @data ||= { - title: link.sub(/^https?\:\/\/github\.com\//, ''), + title: Sanitize.fragment(URI.unescape(link).sub(/^https?\:\/\/github\.com\//, '')), link: link, # IMPORTANT NOTE: All of the other class variables are populated # as *side effects* of the `raw` method! They must all appear # AFTER the call to `raw`! Don't get bitten by this like I did! content: raw,