mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 23:33:31 +00:00
use swal titletext to avoid XSS (#1828)
This commit is contained in:
@@ -238,7 +238,7 @@ export class AppComponent implements OnInit {
|
|||||||
iconHtml: iconClasses != null ? `<i class="swal-custom-icon fa ${iconClasses}"></i>` : undefined,
|
iconHtml: iconClasses != null ? `<i class="swal-custom-icon fa ${iconClasses}"></i>` : undefined,
|
||||||
text: msg.text,
|
text: msg.text,
|
||||||
html: msg.html,
|
html: msg.html,
|
||||||
title: msg.title,
|
titleText: msg.title,
|
||||||
showCancelButton: (cancelText != null),
|
showCancelButton: (cancelText != null),
|
||||||
cancelButtonText: cancelText,
|
cancelButtonText: cancelText,
|
||||||
showConfirmButton: true,
|
showConfirmButton: true,
|
||||||
@@ -256,7 +256,7 @@ export class AppComponent implements OnInit {
|
|||||||
const platformUtils = this.platformUtilsService as BrowserPlatformUtilsService;
|
const platformUtils = this.platformUtilsService as BrowserPlatformUtilsService;
|
||||||
const result = await Swal.fire({
|
const result = await Swal.fire({
|
||||||
heightAuto: false,
|
heightAuto: false,
|
||||||
title: msg.title,
|
titleText: msg.title,
|
||||||
input: 'password',
|
input: 'password',
|
||||||
text: msg.body,
|
text: msg.body,
|
||||||
confirmButtonText: this.i18nService.t('ok'),
|
confirmButtonText: this.i18nService.t('ok'),
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ export class SettingsComponent implements OnInit {
|
|||||||
const submitted = Swal.fire({
|
const submitted = Swal.fire({
|
||||||
heightAuto: false,
|
heightAuto: false,
|
||||||
buttonsStyling: false,
|
buttonsStyling: false,
|
||||||
title: this.i18nService.t('awaitDesktop'),
|
titleText: this.i18nService.t('awaitDesktop'),
|
||||||
text: this.i18nService.t('awaitDesktopDesc'),
|
text: this.i18nService.t('awaitDesktopDesc'),
|
||||||
icon: 'info',
|
icon: 'info',
|
||||||
iconHtml: '<i class="swal-custom-icon fa fa-info-circle text-info"></i>',
|
iconHtml: '<i class="swal-custom-icon fa fa-info-circle text-info"></i>',
|
||||||
|
|||||||
Reference in New Issue
Block a user