From 639d4368c9a681b2a7c755a760d6f595ae81230a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Mon, 1 Jun 2009 14:19:00 +0200
Subject: Remove '\r' characters before sending message to the chatview.


diff --git a/UI/Qt/QtChatView.cpp b/UI/Qt/QtChatView.cpp
index cdf0f4e..ab093db 100644
--- a/UI/Qt/QtChatView.cpp
+++ b/UI/Qt/QtChatView.cpp
@@ -46,6 +46,7 @@ void QtChatView::addMessage(const ChatSnippet& snippet) {
 	content.replace("\\", "\\\\");
 	content.replace("\"", "\\\"");
 	content.replace("\n", "\\n");
+	content.replace("\r", "");
 	if (previousContinuationElementID_.isEmpty() || !snippet.getAppendToPrevious()) {
 		webPage_->mainFrame()->evaluateJavaScript("appendMessage(\"" + content + "\");");
 	}
-- 
cgit v0.10.2-6-g49f6