Explorar el Código

Escape HTML for error messages being sent to alert

j433866 hace 6 años
padre
commit
e35ef8f39b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
     }