fix linefeed exploit

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2484 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2008-09-04 17:24:30 +00:00
parent 4584c662ce
commit 4e531f19f0
+1 -1
View File
@@ -84,7 +84,7 @@ void filtertext(char *dst, const char *src, bool whitespace, int len)
{
case '\f': ++src; continue;
}
if(isspace(c) ? whitespace : isprint(c))
if(isspace(c) ? whitespace && c == ' ' : isprint(c))
{
*dst++ = c;
if(!--len) break;