Commit 23513198 authored by Justin Erenkrantz's avatar Justin Erenkrantz
Browse files

Remove upper limit on the LimitRequestFieldSize directive

MFC: 149269
Reviewed by: stoddard, jerenkrantz, jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@151259 13f79535-47bb-0310-9956-ffa450edef68
parent c1b21cef
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
Changes with Apache 2.0.53
) *) Start keeping track of time-taken-to-process-request again for
  *) Remove compiled-in upper limit on LimitRequestFieldSize.
     [Bill Stoddard]
  *) Start keeping track of time-taken-to-process-request again for
     mod_status if ExtendedStatus is enabled. [Jim Jagielski]
  *) mod_proxy: Handle client-aborted connections correctly.  PR 32443.
+1 −7
Original line number Diff line number Diff line
@@ -2567,16 +2567,10 @@ static const char *set_limit_req_fieldsize(cmd_parms *cmd, void *dummy,
    lim = atoi(arg);
    if (lim < 0) {
        return apr_pstrcat(cmd->temp_pool, "LimitRequestFieldsize \"", arg,
                          "\" must be a non-negative integer (0 = no limit)",
                          "\" must be a non-negative integer",
                          NULL);
    }

    if (lim > DEFAULT_LIMIT_REQUEST_FIELDSIZE) {
        return apr_psprintf(cmd->temp_pool, "LimitRequestFieldsize \"%s\" "
                           "must not exceed the precompiled maximum of %d",
                            arg, DEFAULT_LIMIT_REQUEST_FIELDSIZE);
    }

    cmd->server->limit_req_fieldsize = lim;
    return NULL;
}