summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-06-01 11:42:04 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-06-01 11:54:52 (GMT)
commit015fb6f55f7bc2f822e4b6d959490f23b21a5f74 (patch)
tree7e9b885d511d881c8a6f28d3dd8bd201b62a92c2 /UI/Qt/QtChatView.cpp
parent456a04711c814b6302fcb57005bed873acb12c38 (diff)
downloadswift-contrib-015fb6f55f7bc2f822e4b6d959490f23b21a5f74.zip
swift-contrib-015fb6f55f7bc2f822e4b6d959490f23b21a5f74.tar.bz2
Escape '\' in chats.
Diffstat (limited to 'UI/Qt/QtChatView.cpp')
-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 b6687d0..cdf0f4e 100644
--- a/UI/Qt/QtChatView.cpp
+++ b/UI/Qt/QtChatView.cpp
@@ -43,6 +43,7 @@ void QtChatView::addMessage(const ChatSnippet& snippet) {
//bool wasScrolledToBottom = isScrolledToBottom();
QString content = snippet.getContent();
+ content.replace("\\", "\\\\");
content.replace("\"", "\\\"");
content.replace("\n", "\\n");
if (previousContinuationElementID_.isEmpty() || !snippet.getAppendToPrevious()) {