]> granicus.if.org Git - apache/commitdiff
Somehow, I lost this condition when I changed to account for ap_rgetline.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Fri, 25 Jan 2002 01:20:00 +0000 (01:20 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Fri, 25 Jan 2002 01:20:00 +0000 (01:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93016 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index a3facd2c82ba3465431aa3bacb80f13ee7701b12..5058d41e07f74d38cfb0804d1755386e00ba8c46 100644 (file)
@@ -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,