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-Tag: 2.0.31~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb0ab15d4b92d378cdbfddd6c81f10ab64c5b84f;p=apache 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 a3facd2c82..5058d41e07 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,