From: Graham Leggett Date: Sun, 27 Sep 2009 12:17:12 +0000 (+0000) Subject: ...and promote. X-Git-Tag: 2.2.15~218 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d8db2aa54df947dda97e5d6a22ef23bbaf5fe75;p=thirdparty%2Fapache%2Fhttpd.git ...and promote. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@819292 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 34b8f35d707..a9a34def353 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@  -*- coding: utf-8 -*- Changes with Apache 2.2.15 + *) mod_mime: Detect invalid use of MultiviewsMatch inside Location and + LocationMatch sections. PR47754. [Dan Poirier] + *) ab, mod_ssl: restore compatibility with OpenSSL < 0.9.7g which we broke with r801527 (backport r819242, r819245). Reported on the list by Jie Gao. [Guenter Knauf] diff --git a/STATUS b/STATUS index 7644e3b8822..2867961d839 100644 --- a/STATUS +++ b/STATUS @@ -87,12 +87,6 @@ RELEASE SHOWSTOPPERS: PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - * mod_mime: Detect invalid use of MultiviewsMatch inside Location and - LocationMatch sections. - PR47754. - Trunk Patch: https://svn.apache.org/viewcvs.cgi?view=rev&rev=814728 - 2.2.x Patch: http://people.apache.org/~poirier/PR47754-2.2.x-patch.txt - +1: poirier, rpluem, minfrin PATCHES PROPOSED TO BACKPORT FROM TRUNK: [ New proposals should be added at the end of the list ] diff --git a/docs/manual/mod/mod_mime.xml b/docs/manual/mod/mod_mime.xml index 6f20a3bb2e7..7d4ccd79216 100644 --- a/docs/manual/mod/mod_mime.xml +++ b/docs/manual/mod/mod_mime.xml @@ -598,6 +598,11 @@ a matching file with MultiViews MultiviewsMatch Handlers Filters + +

MultiviewsMatch is not allowed in a + Location or LocationMatch section.

+ Options mod_negotiation diff --git a/modules/http/mod_mime.c b/modules/http/mod_mime.c index d9d8b101711..a801a0ca1d4 100644 --- a/modules/http/mod_mime.c +++ b/modules/http/mod_mime.c @@ -312,6 +312,12 @@ static const char *multiviews_match(cmd_parms *cmd, void *m_, const char *include) { mime_dir_config *m = (mime_dir_config *) m_; + const char *errmsg; + + errmsg = ap_check_cmd_context(cmd, NOT_IN_LOCATION); + if (errmsg != NULL) { + return errmsg; + } if (strcasecmp(include, "Any") == 0) { if (m->multimatch && (m->multimatch & ~MULTIMATCH_ANY)) {