From a4e1b8200a1a96b32ff3a7bdfc0016b1ce493f44 Mon Sep 17 00:00:00 2001 From: Risto Lahtela <24460436+AuroraLS3@users.noreply.github.com> Date: Fri, 12 Feb 2021 12:39:01 +0200 Subject: [PATCH] Encode player name as URI component Affects issues: - Fixed #1751 --- Plan/common/src/main/resources/assets/plan/web/player.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plan/common/src/main/resources/assets/plan/web/player.html b/Plan/common/src/main/resources/assets/plan/web/player.html index d10f8f771..58d549df8 100644 --- a/Plan/common/src/main/resources/assets/plan/web/player.html +++ b/Plan/common/src/main/resources/assets/plan/web/player.html @@ -717,7 +717,7 @@ lang: {noData: "No Data to Display"}, time: {timezoneOffset: ${timeZone} * 60} }); setLoadingText('Loading player values..'); - jsonRequest("../v1/player?player=${playerName}", function (json, error) { + jsonRequest(`../v1/player?player=${encodeURIComponent('${playerName}')}`, function (json, error) { loadPlayerOverviewValues(json, error); loadSessionAccordion(json, error); loadserverAccordion(json, error);