From b3ce2901462ebda7a69b5e646f39abb621c40ef1 Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Mon, 19 Sep 2011 12:32:39 +0200 Subject: [PATCH] IDEA-73563 (Balloon doesn't escape XML tags in commit message) --- .../com/intellij/openapi/vcs/changes/ui/CommitHelper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitHelper.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitHelper.java index cca7926e64b0..6b2d4e650753 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitHelper.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitHelper.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2011 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -135,8 +135,8 @@ public class CommitHelper { if (failed > 0) { text += ", " + failed + " " + StringUtil.pluralize("change", failed) + " failed to commit"; } - String content = StringUtil.isEmpty(myCommitMessage) ? text : text + ": " + myCommitMessage; - VcsBalloonProblemNotifier.NOTIFICATION_GROUP.createNotification(content, NotificationType.INFORMATION).notify( myProject); + String content = StringUtil.isEmpty(myCommitMessage) ? text : text + ": " + StringUtil.escapeXml(myCommitMessage); + VcsBalloonProblemNotifier.NOTIFICATION_GROUP.createNotification(content, NotificationType.INFORMATION).notify(myProject); return new NotificationInfo("VCS Commit", "VCS Commit Finished", text, true); } };