r3445 - trunk/data/qcsrc/common
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Feb 27 09:03:29 EST 2008
Author: div0
Date: 2008-02-27 09:03:28 -0500 (Wed, 27 Feb 2008)
New Revision: 3445
Modified:
trunk/data/qcsrc/common/util.qc
Log:
darn... escaping keys is bad
Modified: trunk/data/qcsrc/common/util.qc
===================================================================
--- trunk/data/qcsrc/common/util.qc 2008-02-27 13:59:27 UTC (rev 3444)
+++ trunk/data/qcsrc/common/util.qc 2008-02-27 14:03:28 UTC (rev 3445)
@@ -318,7 +318,6 @@
string db_get(float db, string pKey)
{
float h;
- pKey = uri_escape(pKey);
h = mod(crc16(FALSE, pKey), DB_BUCKETS);
return uri_unescape(infoget(bufstr_get(db, h), pKey));
}
@@ -326,10 +325,8 @@
void db_put(float db, string pKey, string pValue)
{
float h;
- pKey = uri_escape(pKey);
- pValue = uri_escape(pValue);
h = mod(crc16(FALSE, pKey), DB_BUCKETS);
- bufstr_set(db, h, infoadd(bufstr_get(db, h), pKey, pValue));
+ bufstr_set(db, h, infoadd(bufstr_get(db, h), pKey, uri_escape(pValue)));
}
void db_test()
More information about the nexuiz-commits
mailing list