mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git] reset dialog: escape commit message
Just in case it contains something like "</code>"
This commit is contained in:
@@ -117,7 +117,7 @@ public class GitNewResetDialog extends DialogWrapper {
|
||||
|
||||
@NotNull
|
||||
private static String getTargetText(@NotNull VcsFullCommitDetails commit) {
|
||||
String commitMessage = StringUtil.shortenTextWithEllipsis(commit.getSubject(), 20, 0);
|
||||
String commitMessage = StringUtil.escapeXml(StringUtil.shortenTextWithEllipsis(commit.getSubject(), 20, 0));
|
||||
return String.format("<code><b>%s</b> \"%s\"</code> by <code>%s</code>",
|
||||
commit.getId().toShortString(), commitMessage, commit.getAuthor().getName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user