r5202 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Dec 12 16:40:50 EST 2008


Author: div0
Date: 2008-12-12 16:40:50 -0500 (Fri, 12 Dec 2008)
New Revision: 5202

Modified:
   trunk/data/qcsrc/server/vote.qc
Log:
don't uri_escape when not needed


Modified: trunk/data/qcsrc/server/vote.qc
===================================================================
--- trunk/data/qcsrc/server/vote.qc	2008-12-12 21:24:24 UTC (rev 5201)
+++ trunk/data/qcsrc/server/vote.qc	2008-12-12 21:40:50 UTC (rev 5202)
@@ -54,7 +54,8 @@
 		if(GetKickVoteVictim_reason != "")
 			reason = strcat(reason, ": ", strdecolorize(GetKickVoteVictim_reason));
 
-		reason = uri_escape(reason); // workaround until we know what to do about the weird extended characters
+		if not(cvar_value_issafe(reason))
+			reason = uri_escape(reason);
 
 		n = stof(ns);
 		if(ns == ftos(n)) if(n >= 1) if(n <= maxclients)




More information about the nexuiz-commits mailing list