ChangeUpdate: Sanitize identity in Submitted-with footer

We already sanitize names and emails elsewhere, but missed this one.

Change-Id: I55abb96504c9b9f5b7d8dc7f221fb27c4c5885c5
This commit is contained in:
Dave Borowitz
2016-10-05 10:14:52 -04:00
parent a9986eb1c0
commit 1ac31577b6

View File

@@ -646,10 +646,8 @@ public class ChangeUpdate extends AbstractChangeUpdate {
addFooter(msg, FOOTER_SUBMITTED_WITH)
.append(label.status).append(": ").append(label.label);
if (label.appliedBy != null) {
PersonIdent ident =
newIdent(accountCache.get(label.appliedBy).getAccount(), when);
msg.append(": ").append(ident.getName())
.append(" <").append(ident.getEmailAddress()).append('>');
msg.append(": ");
addIdent(msg, label.appliedBy);
}
msg.append('\n');
}