Quote:
Index: trunk/code/game/g_cmds.c
===================================================================
--- trunk/code/game/g_cmds.c (revision 1288)
+++ trunk/code/game/g_cmds.c (working copy)
@@ -1239,7 +1239,8 @@
trap_Argv( 1, arg1, sizeof( arg1 ) );
trap_Argv( 2, arg2, sizeof( arg2 ) );
- if( strchr( arg1, ';' ) || strchr( arg2, ';' ) ) {
+ if( strchr( arg1, ';' ) || strchr( arg2, ';' ) ||
+ strchr( arg1, '\n' ) || strchr( arg2, '\n' ) ) {
trap_SendServerCommand( ent-g_entities, "print \"Invalid vote string.\n\"" );
return;
}
@@ -1404,7 +1405,8 @@
trap_Argv( i, &arg2[strlen(arg2)], sizeof( arg2 ) - strlen(arg2) );
}
- if( strchr( arg1, ';' ) || strchr( arg2, ';' ) ) {
+ if( strchr( arg1, ';' ) || strchr( arg2, ';' ) ||
+ strchr( arg1, '\n' ) || strchr( arg2, '\n' ) ) {
trap_SendServerCommand( ent-g_entities, "print \"Invalid vote string.\n\"" );
return;
}
They forgot \r *lol*