Skip to content

Commit

Permalink
HTML Escape certificate content (open-eid#1267)
Browse files Browse the repository at this point in the history
IB-8093

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored Jul 3, 2024
1 parent 7b1997e commit 36ab447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/widgets/CardWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ void CardWidget::update(const TokenData &token, bool multiple)
SslCertificate c = t.cert();
QString id = c.personalCode();
if(!c.subjectInfo("GN").isEmpty() || !c.subjectInfo("SN").isEmpty())
ui->cardName->setText(c.toString(QStringLiteral("GN SN")));
ui->cardName->setText(c.toString(QStringLiteral("GN SN")).toHtmlEscaped());
else
ui->cardName->setText(c.toString(QStringLiteral("CN")));
ui->cardName->setText(c.toString(QStringLiteral("CN")).toHtmlEscaped());
ui->cardName->setAccessibleName(ui->cardName->text().toLower());
ui->cardCode->setText(id + " |");
ui->cardCode->setAccessibleName(id);
Expand Down

0 comments on commit 36ab447

Please sign in to comment.