mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-30 13:03:53 +01:00
use swal titletext to avoid XSS (#884)
This commit is contained in:
parent
55b0118240
commit
0d5d8b671d
@ -18,7 +18,7 @@ export class ElectronPlatformUtilsService extends BaseElectronPlatformUtilsServi
|
|||||||
Promise<boolean> {
|
Promise<boolean> {
|
||||||
const result = await Swal.fire({
|
const result = await Swal.fire({
|
||||||
heightAuto: false,
|
heightAuto: false,
|
||||||
title: title,
|
titleText: title,
|
||||||
input: 'password',
|
input: 'password',
|
||||||
text: body,
|
text: body,
|
||||||
confirmButtonText: this.i18nService.t('ok'),
|
confirmButtonText: this.i18nService.t('ok'),
|
||||||
|
@ -53,7 +53,7 @@ export class NativeMessagingService {
|
|||||||
|
|
||||||
// Await confirmation that fingerprint is correct
|
// Await confirmation that fingerprint is correct
|
||||||
const submitted = await Swal.fire({
|
const submitted = await Swal.fire({
|
||||||
title: this.i18nService.t('verifyBrowserTitle'),
|
titleText: this.i18nService.t('verifyBrowserTitle'),
|
||||||
html: `${this.i18nService.t('verifyBrowserDesc')}<br><br><strong>${fingerprint}</strong>`,
|
html: `${this.i18nService.t('verifyBrowserDesc')}<br><br><strong>${fingerprint}</strong>`,
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
cancelButtonText: this.i18nService.t('cancel'),
|
cancelButtonText: this.i18nService.t('cancel'),
|
||||||
|
Loading…
Reference in New Issue
Block a user