From 4e531f19f080f933dc8490b30924c20860f23a9b Mon Sep 17 00:00:00 2001 From: ac_stef Date: Thu, 4 Sep 2008 17:24:30 +0000 Subject: [PATCH] fix linefeed exploit git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2484 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/protocol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/protocol.cpp b/source/src/protocol.cpp index 94c0c2a8..c9222f15 100644 --- a/source/src/protocol.cpp +++ b/source/src/protocol.cpp @@ -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;