Encode commit message

So that HTML/XML tags in messages don't break the feed.
This commit is contained in:
Hiro Asari 2013-11-11 14:11:35 -05:00
parent 53d2e950b9
commit ea3a5a7a0d

View File

@ -21,7 +21,7 @@ module Travis::Api::App::Responders
<updated><%= ::DateTime.parse(build.updated_at.to_s).rfc3339 %></updated>
<summary type="html">
&lt;p&gt;
<%= build.commit.message %> (<%= build.commit.committer_name %>)
<%= build.commit.message.encode(:xml => :text) %> (<%= build.commit.committer_name %>)
&lt;br/&gt;&lt;br/&gt;
State: <%= build.state %>
&lt;br/&gt;