Skip to content

Commit

Permalink
Bug 1361568 - Unescape commit messages used in the tooltips (#2444) r…
Browse files Browse the repository at this point in the history
…=camd

* Bug 1361568 - Unescape commit messages used in the tooltips
  • Loading branch information
KWierso committed Jun 30, 2017
1 parent 89e648b commit 33d2a87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/js/reactrevisions.jsx
Expand Up @@ -23,8 +23,9 @@ const RevisionItem = (props) => {

if (userTokens.length > 1) email = userTokens[1];
initialsHTML = { __html: props.initialsFilter(name) };
const comment = props.revision.comments.split('\n')[0];

escapedComment = _.escape(props.revision.comments.split('\n')[0]);
escapedComment = _.escape(comment);
escapedCommentHTML = { __html: props.linkifyBugsFilter(escapedComment) };

tags = '';
Expand All @@ -44,7 +45,7 @@ const RevisionItem = (props) => {
</span>
<span title={`${name}: ${email}`}
dangerouslySetInnerHTML={initialsHTML} />
<span title={escapedComment}>
<span title={comment}>
<span className="revision-comment">
<em dangerouslySetInnerHTML={escapedCommentHTML} />
</span>
Expand Down

0 comments on commit 33d2a87

Please sign in to comment.