From 09fcfe627fb1b21477bbca02bc8d5380873ea658 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Mon, 29 Aug 2016 22:19:25 +0000 Subject: [PATCH] Calm some overly agressive crlf handling git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1758305 13f79535-47bb-0310-9956-ffa450edef68 --- server/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/protocol.c b/server/protocol.c index 875bcbba66..a674c92d09 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -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; -- 2.50.1