From: Rudolf Polzer Date: Wed, 17 Aug 2011 19:59:03 +0000 (+0200) Subject: Merge branch 'master' into divVerent/urllib-weaponstats X-Git-Tag: xonotic-v0.5.0~111^2~4^2~7 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=b2b23a889ea8112d5f1373aeb458731d62d469fb;hp=812ae052ddd48bd3a73d1bc566dbe073e26e0d36 Merge branch 'master' into divVerent/urllib-weaponstats --- diff --git a/qcsrc/common/urllib.qc b/qcsrc/common/urllib.qc index 7a5f33347..5a24a0fc4 100644 --- a/qcsrc/common/urllib.qc +++ b/qcsrc/common/urllib.qc @@ -67,7 +67,7 @@ void url_fopen(string url, float mode, url_ready_func rdy, entity pass) { entity e; float i; - if(strstrofs(url, "://", -1)) + if(strstrofs(url, "://", 0) >= 0) { switch(mode) { @@ -178,8 +178,9 @@ void url_fclose(entity e, url_ready_func rdy, entity pass) return; } } + print(ftos(i), "\n"); - if(!uri_postbuf(e.url_url, e.url_id + MIN_URL_ID, "text/plain", "\n", e.url_wbuf)) + if(!uri_postbuf(e.url_url, i + MIN_URL_ID, "text/plain", "\n", e.url_wbuf)) { buf_del(e.url_wbuf); rdy(e, pass, URL_READY_ERROR);