diff --git a/src/widget/form/groupinviteform.cpp b/src/widget/form/groupinviteform.cpp index 0f2fce038..7dc27b31d 100644 --- a/src/widget/form/groupinviteform.cpp +++ b/src/widget/form/groupinviteform.cpp @@ -111,7 +111,7 @@ void GroupInviteForm::addGroupInvite(int32_t friendId, uint8_t type, QByteArray QDateTime currentDateTime = QDateTime::currentDateTime(); QString date = currentDateTime.toString(Settings::getInstance().getDateFormat()); QString time = currentDateTime.toString(Settings::getInstance().getTimestampFormat()); - groupLabel->setText(tr("Invited by %1 on %2 at %3.").arg(name, date, time)); + groupLabel->setText(tr("Invited by %1 on %2 at %3.").arg(name.toHtmlEscaped(), date, time)); groupLayout->addWidget(groupLabel); QPushButton* acceptButton = new QPushButton(this); @@ -212,7 +212,7 @@ void GroupInviteForm::retranslateGroupLabel(CroppingLabel* label) QString date = invite.time.toString(Settings::getInstance().getDateFormat()); QString time = invite.time.toString(Settings::getInstance().getTimestampFormat()); - label->setText(tr("Invited by %1 on %2 at %3.").arg(name, date, time)); + label->setText(tr("Invited by %1 on %2 at %3.").arg(name.toHtmlEscaped(), date, time)); } void GroupInviteForm::retranslateAcceptButton(QPushButton* acceptButton)