Revert "Merge branch 'onebox-safety' of git://github.com/tms/discourse"

This reverts commit 7ca57db97afda4d1c130269061f0db3cb9d0dd42, reversing
changes made to b7e027cfd1590365ac9c85141ff2b02c25e900fb.
This commit is contained in:
Robin Ward
2013-02-19 14:22:13 -05:00
parent d05706f774
commit ba238f92c2
12 changed files with 88 additions and 125 deletions

View File

@ -3,7 +3,7 @@ require_dependency 'oneboxer/handlebars_onebox'
module Oneboxer
class GithubBlobOnebox < HandlebarsOnebox
matcher /^https?:\/\/(?:www\.)?github\.com\/[^\/]+\/[^\/]+\/blob\/.*/
matcher /github\.com\/[^\/]+\/[^\/]+\/blob\/.*/
favicon 'github.png'
def translate_url