From: Justin Erenkrantz Date: Fri, 25 Jan 2002 01:20:00 +0000 (+0000) Subject: Somehow, I lost this condition when I changed to account for ap_rgetline. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7455678831531acc422dbd7cd0569066c0af2a6;p=thirdparty%2Fapache%2Fhttpd.git Somehow, I lost this condition when I changed to account for ap_rgetline. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93016 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index a3facd2c82b..5058d41e07f 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -661,7 +661,7 @@ static void get_mime_headers(request_rec *r) * finding the end-of-line. This is only going to happen if it * exceeds the configured limit for a field size. */ - if (rv == APR_ENOSPC) { + if (rv == APR_ENOSPC || len > r->server->limit_req_fieldsize) { r->status = HTTP_BAD_REQUEST; apr_table_setn(r->notes, "error-notes", apr_pstrcat(r->pool,