Skip to content

Commit

Permalink
HTML Escape certificate content
Browse files Browse the repository at this point in the history
IB-8093

Signed-off-by: Raul Metsma <raul@metsma.ee>
  • Loading branch information
metsma committed May 27, 2024
1 parent 2e76fc3 commit 15f9c7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
container: ubuntu:${{ matrix.container }}
strategy:
matrix:
container: ['20.04', '22.04', '23.10']
container: ['20.04', '22.04', '24.04']
env:
DEBIAN_FRONTEND: noninteractive
DEBFULLNAME: github-actions
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
container: fedora:${{ matrix.container }}
strategy:
matrix:
container: [38, 39]
container: [39, 40]
steps:
- name: Install Deps
run: |
Expand Down Expand Up @@ -186,7 +186,6 @@ jobs:
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
sdk: 10.0.19041.0
- name: Install WiX
run: |
dotnet tool install -g wix --version 5.0.0
Expand Down
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 15f9c7f

Please sign in to comment.