From: Ian Kelling Date: Wed, 28 Sep 2016 07:30:59 +0000 (-0700) Subject: use safe markdown for comments to prevent xss X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=842a5c8cf5cb6526dc880fd8bc5fedd2ecfc544c;p=iankelling.org use safe markdown for comments to prevent xss --- diff --git a/b.rb b/b.rb index 432bbc2..b5e2aa9 100644 --- a/b.rb +++ b/b.rb @@ -126,7 +126,7 @@ EOF end def comment_html(comment, date) - inner = Redcarpet::Markdown.new(Redcarpet::Render::HTML, fenced_code_blocks: true).render(<#{Time.at(date).strftime("%b %-d '%y")} EOF