summaryrefslogtreecommitdiffstats
path: root/UI/Qt
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-06-01 12:19:00 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-06-01 12:19:00 (GMT)
commit639d4368c9a681b2a7c755a760d6f595ae81230a (patch)
tree73f52e0a957cc77423f4ace25141038984b98157 /UI/Qt
parente16c66185e9f633a05911d708e6404d9f741c7b1 (diff)
downloadswift-639d4368c9a681b2a7c755a760d6f595ae81230a.zip
swift-639d4368c9a681b2a7c755a760d6f595ae81230a.tar.bz2
Remove '\r' characters before sending message to the chatview.
Diffstat (limited to 'UI/Qt')
-rw-r--r--UI/Qt/QtChatView.cpp1
1 files changed, 1 insertions, 0 deletions
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 + "\");");
}