Calm some overly agressive crlf handling

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1758305 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
William A. Rowe Jr
2016-08-29 22:19:25 +00:00
parent 28163941ef
commit 09fcfe627f

View File

@ -329,7 +329,7 @@ AP_DECLARE(apr_status_t) ap_rgetline_core(char **s, apr_size_t n,
}
}
if (last_char <= *s || last_char[-1] != APR_ASCII_CR) {
if (crlf && (last_char <= *s || last_char[-1] != APR_ASCII_CR)) {
*last_char = '\0';
bytes_handled = last_char - *s;
*read = bytes_handled;