From: Brian Havard Date: Sun, 31 Mar 2002 07:48:56 +0000 (+0000) Subject: Handle CR/LF terminated lines from CGI scripts. X-Git-Tag: 2.0.34~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43be77c53c3cad3c4303c82de6aec58d6a4ae951;p=apache Handle CR/LF terminated lines from CGI scripts. Reviewed by: Brian Pane git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94346 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_script.c b/server/util_script.c index d5f6f893e1..0b9521f85f 100644 --- a/server/util_script.c +++ b/server/util_script.c @@ -645,7 +645,7 @@ static int getsfunc_BRIGADE(char *buf, int len, void *arg) if (*src == '\n') { done = 1; } - else { + else if (*src != '\r') { *dst++ = *src; } src++;