From 55401c86c1b86d5cbed942c79f9e686a37ec4ab6 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Sat, 19 Oct 2019 00:00:33 +0300 Subject: [PATCH] Removed usage of Server name in JS Improper sanitation was causing issues when server name contained a single quote symbol. .server-name replacement was not in use so the offending line of JS code could be removed. Affects issues: - Fixed #1191 --- Plan/common/src/main/resources/assets/plan/web/network.html | 1 - Plan/common/src/main/resources/assets/plan/web/server.html | 1 - 2 files changed, 2 deletions(-) diff --git a/Plan/common/src/main/resources/assets/plan/web/network.html b/Plan/common/src/main/resources/assets/plan/web/network.html index 58e98f3b3..998b2a3d6 100644 --- a/Plan/common/src/main/resources/assets/plan/web/network.html +++ b/Plan/common/src/main/resources/assets/plan/web/network.html @@ -963,7 +963,6 @@ jsonRequest("../v1/network/pingTable", loadPingTable); - $('.server-name').text('${networkDisplayName}'); $('.player-plugin-table').DataTable({ responsive: true }); diff --git a/Plan/common/src/main/resources/assets/plan/web/server.html b/Plan/common/src/main/resources/assets/plan/web/server.html index f1f757eb1..2129208eb 100644 --- a/Plan/common/src/main/resources/assets/plan/web/server.html +++ b/Plan/common/src/main/resources/assets/plan/web/server.html @@ -1597,7 +1597,6 @@ jsonRequest("../v1/kills?server=${serverUUID}", loadPlayerKills); jsonRequest("../v1/pingTable?server=${serverUUID}", loadPingTable); - $('.server-name').text('${serverName}'); $('.player-plugin-table').DataTable({ responsive: true });