mirror of
https://github.com/knadh/listmonk.git
synced 2025-02-01 03:00:30 +08:00
Sanitize HTML in Buefy dialogs.
This commit is contained in:
parent
d5b912aed3
commit
a94f238952
1 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ export default class Utils {
|
|||
confirm = (msg, onConfirm, onCancel) => {
|
||||
Dialog.confirm({
|
||||
scroll: 'keep',
|
||||
message: !msg ? this.i18n.t('globals.messages.confirm') : msg,
|
||||
message: !msg ? this.i18n.t('globals.messages.confirm') : this.escapeHTML(msg),
|
||||
confirmText: this.i18n.t('globals.buttons.ok'),
|
||||
cancelText: this.i18n.t('globals.buttons.cancel'),
|
||||
onConfirm,
|
||||
|
@ -144,7 +144,7 @@ export default class Utils {
|
|||
prompt = (msg, inputAttrs, onConfirm, onCancel) => {
|
||||
Dialog.prompt({
|
||||
scroll: 'keep',
|
||||
message: msg,
|
||||
message: this.escapeHTML(msg),
|
||||
confirmText: this.i18n.t('globals.buttons.ok'),
|
||||
cancelText: this.i18n.t('globals.buttons.cancel'),
|
||||
inputAttrs: {
|
||||
|
|
Loading…
Reference in a new issue