Ver Fonte

Escape HTML for error messages being sent to alert

j433866 há 6 anos atrás
pai
commit
e35ef8f39b
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/web/App.mjs

+ 1 - 1
src/web/App.mjs

@@ -108,7 +108,7 @@ class App {
     handleError(err, logToConsole) {
         if (logToConsole) log.error(err);
         const msg = err.displayStr || err.toString();
-        this.alert(msg, this.options.errorTimeout, !this.options.showErrors);
+        this.alert(Utils.escapeHtml(msg), this.options.errorTimeout, !this.options.showErrors);
     }