Fix XSS issue when rendering commit messages
authorMarcin Kulik <m@ku1ik.com>
Tue, 11 Feb 2014 11:02:27 +0000 (12:02 +0100)
committerMarcin Kulik <m@ku1ik.com>
Tue, 11 Feb 2014 11:02:27 +0000 (12:02 +0100)
commitdae9fa1f29f9c92052e84013c775e1b1c192d4c1
tree562239d2376d763b7ebf9142ee4c5ff45eb6eba5
parent397abd7cb14d79381f71b7766cdb3a53b1ecb106
Fix XSS issue when rendering commit messages

I took the opportunity to move some logic out of templates, and put it
into CommitPresenter.
app/helpers/commits_helper.rb
app/presenters/commit_presenter.rb
app/presenters/event_presenter/push_summary_event.rb
app/views/commits/_commit_meta.html.erb
app/views/commits/show.html.erb
test/fast_test_helper.rb
test/micro/presenters/commit_presenter_test.rb