From 389e36355a60860d710df42b1370b9f4e6e7ddb3 Mon Sep 17 00:00:00 2001 From: TimePath Date: Sun, 3 Apr 2016 12:58:29 +1000 Subject: [PATCH] Xonstat: uri_escape thrice --- qcsrc/common/playerstats.qc | 2 +- qcsrc/common/state.qc | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/qcsrc/common/playerstats.qc b/qcsrc/common/playerstats.qc index 233762202..ec2f7cad3 100644 --- a/qcsrc/common/playerstats.qc +++ b/qcsrc/common/playerstats.qc @@ -427,7 +427,7 @@ void PlayerStats_PlayerBasic(entity joiningplayer, float newrequest) PS_B_IN_DB = db_create(); // now request the information - uri = strcat(uri, "/player/", uri_escape(uri_escape(joiningplayer.crypto_idfp)), "/elo.txt"); + uri = strcat(uri, "/player/", uri_escape(uri_escape(uri_escape(joiningplayer.crypto_idfp))), "/elo.txt"); LOG_TRACE("Retrieving playerstats from URL: ", uri, "\n"); url_single_fopen( uri, diff --git a/qcsrc/common/state.qc b/qcsrc/common/state.qc index d75e08027..1d96923ed 100644 --- a/qcsrc/common/state.qc +++ b/qcsrc/common/state.qc @@ -39,8 +39,7 @@ void ClientState_attach(entity this) GetCvars(this, 0); // get other cvars from player - // TODO: xonstat elo.txt support, until then just 404s - if (false && IS_REAL_CLIENT(this)) { PlayerStats_PlayerBasic_CheckUpdate(this); } + if (IS_REAL_CLIENT(this)) { PlayerStats_PlayerBasic_CheckUpdate(this); } // TODO: fold all of these into ClientState -- 2.39.2