A small security fix, well, it might be needed later.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1343 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-09-17 17:09:22 +00:00
parent 01d92fdaf2
commit bc810377fd

View file

@ -1344,6 +1344,13 @@ void P_NewServer(void)
f_modified_particles = false; f_modified_particles = false;
{
char *semi;
semi = strchr(r_particlesdesc.string, ';');
if (semi) //make sure nothing uses this for other means.
*semi = '\0';
}
//particle descriptions submitted by the server are deemed to not be cheats but game configs. //particle descriptions submitted by the server are deemed to not be cheats but game configs.
if (!stricmp(r_particlesdesc.string, "none")) if (!stricmp(r_particlesdesc.string, "none"))
return; return;