Procházet zdrojové kódy

Escape HTML for error messages being sent to alert

j433866 před 6 roky
rodič
revize
e35ef8f39b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);
     }