Commit 10102d07 authored by Bill Stoddard's avatar Bill Stoddard
Browse files

Remove upper limit on the LimitRequestFieldSize directive

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@149269 13f79535-47bb-0310-9956-ffa450edef68
parent 06ee95ec
Loading
Loading
Loading
Loading
+3 −0
Changes for CHANGES: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -2,6 +2,9 @@ Changes with Apache 2.1.3
  [Remove entries to the current 2.0 section below, when backported]
  *) Remove compiled-in upper limit on LimitRequestFieldSize.
     [Bill Stoddard]
  *) mod_ldap: Added the directive LDAPConnectionTimeout to configure
     the ldap socket connection timeout value.  
     [Brad Nicholes]
+1 −7
Changes for server/core.c: 1 added line, 7 removed lines.
Original line number Diff line number Diff line
@@ -2704,16 +2704,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;
}