Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(groupinviteform): escape HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNain38 committed Jul 14, 2016
1 parent 9a8cfa6 commit e4bc857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widget/form/groupinviteform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <b>%1</b> on %2 at %3.").arg(name, date, time));
groupLabel->setText(tr("Invited by <b>%1</b> on %2 at %3.").arg(name.toHtmlEscaped(), date, time));
groupLayout->addWidget(groupLabel);

QPushButton* acceptButton = new QPushButton(this);
Expand Down Expand Up @@ -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 <b>%1</b> on %2 at %3.").arg(name, date, time));
label->setText(tr("Invited by <b>%1</b> on %2 at %3.").arg(name.toHtmlEscaped(), date, time));
}

void GroupInviteForm::retranslateAcceptButton(QPushButton* acceptButton)
Expand Down

0 comments on commit e4bc857

Please sign in to comment.