From: TimePath Date: Sun, 3 Apr 2016 02:58:29 +0000 (+1000) Subject: Xonstat: uri_escape thrice X-Git-Tag: xonotic-v0.8.2~974 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=389e36355a60860d710df42b1370b9f4e6e7ddb3;p=xonotic%2Fxonotic-data.pk3dir.git Xonstat: uri_escape thrice --- 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