Encode player name as URI component

Affects issues:
- Fixed #1751
This commit is contained in:
Risto Lahtela 2021-02-12 12:39:01 +02:00
parent 576ea45462
commit a4e1b8200a

View File

@ -717,7 +717,7 @@
lang: {noData: "No Data to Display"}, time: {timezoneOffset: ${timeZone} * 60} lang: {noData: "No Data to Display"}, time: {timezoneOffset: ${timeZone} * 60}
}); });
setLoadingText('Loading player values..'); setLoadingText('Loading player values..');
jsonRequest("../v1/player?player=${playerName}", function (json, error) { jsonRequest(`../v1/player?player=${encodeURIComponent('${playerName}')}`, function (json, error) {
loadPlayerOverviewValues(json, error); loadPlayerOverviewValues(json, error);
loadSessionAccordion(json, error); loadSessionAccordion(json, error);
loadserverAccordion(json, error); loadserverAccordion(json, error);