mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-28 12:45:45 +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> {
|
||||
const result = await Swal.fire({
|
||||
heightAuto: false,
|
||||
title: title,
|
||||
titleText: title,
|
||||
input: 'password',
|
||||
text: body,
|
||||
confirmButtonText: this.i18nService.t('ok'),
|
||||
|
@ -53,7 +53,7 @@ export class NativeMessagingService {
|
||||
|
||||
// Await confirmation that fingerprint is correct
|
||||
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>`,
|
||||
showCancelButton: true,
|
||||
cancelButtonText: this.i18nService.t('cancel'),
|
||||
|
Loading…
Reference in New Issue
Block a user