Browse Source

escaping text on messages sent through message input

logicp 5 years ago
parent
commit
e74e4e7fae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mainwindow.cpp

+ 1 - 1
src/mainwindow.cpp

@@ -76,7 +76,7 @@ void MainWindow::connectClient() {
     QPushButton* send_message_button = this->findChild<QPushButton*>("sendMessage");
     // Handle mouse
     QObject::connect(send_message_button, &QPushButton::clicked, this, [this, send_message_box]() {
-        q_client->sendMessage(send_message_box->toPlainText());
+        q_client->sendMessage(escapeText(send_message_box->toPlainText()));
         send_message_box->clear();
     });