diff -r d2eb5fd97df0 -r a881dc866e23 src/server/safs/cgi.c --- a/src/server/safs/cgi.c Fri Oct 28 19:29:38 2016 +0200 +++ b/src/server/safs/cgi.c Sat Oct 29 20:02:26 2016 +0200 @@ -239,7 +239,7 @@ line_begin = i+1; value_begin = line_begin; space = TRUE; - } else if(c != ' ') { + } else if(!isspace(c)) { space = FALSE; } }