From: Jim Jagielski Date: Tue, 27 May 2008 16:25:19 +0000 (+0000) Subject: Merge r652885 from trunk: X-Git-Tag: 2.2.9~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d075ac1d02712f00d57166fd9d016ca9a7e4b9f2;p=thirdparty%2Fapache%2Fhttpd.git Merge r652885 from trunk: * Do not allow all options of ALL to be set when only a few of them are allowed. PR: 44262 Submitted by: Micha?\197?\130 Grz?\196?\153dzicki Reviewed by: rpluem Submitted by: rpluem Reviewed by: jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@660585 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index ca09c80baec..f824ed967e8 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.2.9 + *) core: Do not allow Options ALL if not all options are allowed to be + overwritten. PR 44262 [Michał Grzędzicki ] + *) mod_cache: Handle If-Range correctly if the cached resource was stale. PR 44579 [Ruediger Pluem] diff --git a/STATUS b/STATUS index 98cd694394e..48948f834e3 100644 --- a/STATUS +++ b/STATUS @@ -90,13 +90,6 @@ RELEASE SHOWSTOPPERS: PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - * core: Do not allow Options ALL if not all options are allowed to be - overwritten. PR 44262 - Trunk version of patch: - http://svn.apache.org/viewvc?rev=652885&view=rev - Backport version for 2.2.x of patch: - Trunk version of patch works - +1: rpluem, niq, jim PATCHES PROPOSED TO BACKPORT FROM TRUNK: [ New proposals should be added at the end of the list ] diff --git a/server/core.c b/server/core.c index 0e479b0c5d0..52fcc4e469a 100644 --- a/server/core.c +++ b/server/core.c @@ -1458,7 +1458,7 @@ static const char *set_options(cmd_parms *cmd, void *d_, const char *l) return apr_pstrcat(cmd->pool, "Illegal option ", w, NULL); } - if (!(cmd->override_opts & opt) && opt != OPT_NONE) { + if ( (cmd->override_opts & opt) != opt ) { return apr_pstrcat(cmd->pool, "Option ", w, " not allowed here", NULL); } else if (action == '-') {