Skip to content

Commit

Permalink
Sanitize HTML in Buefy dialogs.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed May 1, 2022
1 parent d5b912a commit a94f238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/utils.js
Expand Up @@ -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,
Expand All @@ -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: {
Expand Down

0 comments on commit a94f238

Please sign in to comment.