From b4a2c63ab4f20051b6258aca861a511bb75f1d30 Mon Sep 17 00:00:00 2001 From: Danny Tsai Date: Sat, 21 Dec 2019 16:43:36 +0800 Subject: [PATCH] fix broken escapse for < --- client/scripts/WebConsole.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/scripts/WebConsole.js b/client/scripts/WebConsole.js index df1b511..545c9c6 100644 --- a/client/scripts/WebConsole.js +++ b/client/scripts/WebConsole.js @@ -103,7 +103,7 @@ function writeToWebConsole(msg){ var isScrolledDown = document.getElementById("consoleTextArea").scrollHeight - document.getElementById("consoleTextArea").scrollTop - 40 == $("#consoleTextArea").height(); //Write to div, replacing < to < (to avoid XSS) and replacing new line to br. - msg = msg.replace(/"); //Color filter for Windows (thanks to SuperPykkon) @@ -240,4 +240,4 @@ function updateServerList(){ if(servers.length == 0){ $('#ServerListDropDown').append('No servers added'); } -} \ No newline at end of file +}