You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2012/03/24 17:32:53 UTC
svn commit: r1304852 - in /httpd/httpd/trunk: CHANGES server/core.c
Author: sf
Date: Sat Mar 24 16:32:53 2012
New Revision: 1304852
URL: http://svn.apache.org/viewvc?rev=1304852&view=rev
Log:
Fix merging of AllowOverrideList and ContentDigest.
Remove some useless code.
Pointed out by coverner
Modified:
httpd/httpd/trunk/CHANGES
httpd/httpd/trunk/server/core.c
Modified: httpd/httpd/trunk/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=1304852&r1=1304851&r2=1304852&view=diff
==============================================================================
--- httpd/httpd/trunk/CHANGES [utf-8] (original)
+++ httpd/httpd/trunk/CHANGES [utf-8] Sat Mar 24 16:32:53 2012
@@ -1,6 +1,9 @@
-*- coding: utf-8 -*-
Changes with Apache 2.5.0
+ *) core: Fix merging of AllowOverrideList and ContentDigest.
+ [Stefan Fritsch]
+
*) core: Disallow directives in AllowOverrideList which are only allowed
in VirtualHost or server context. These are usually not prepared to be
called in .htaccess files. [Stefan Fritsch]
Modified: httpd/httpd/trunk/server/core.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/core.c?rev=1304852&r1=1304851&r2=1304852&view=diff
==============================================================================
--- httpd/httpd/trunk/server/core.c (original)
+++ httpd/httpd/trunk/server/core.c Sat Mar 24 16:32:53 2012
@@ -247,7 +247,7 @@ static void *merge_core_dir_configs(apr_
conf->override_opts = new->override_opts;
}
- if (conf->override_list == NULL) {
+ if (new->override_list != NULL) {
conf->override_list = new->override_list;
}
@@ -274,7 +274,7 @@ static void *merge_core_dir_configs(apr_
conf->hostname_lookups = new->hostname_lookups;
}
- if (new->content_md5 == AP_CONTENT_MD5_UNSET) {
+ if (new->content_md5 != AP_CONTENT_MD5_UNSET) {
conf->content_md5 = new->content_md5;
}
@@ -314,8 +314,6 @@ static void *merge_core_dir_configs(apr_
if (new->limit_xml_body != AP_LIMIT_UNSET)
conf->limit_xml_body = new->limit_xml_body;
- else
- conf->limit_xml_body = base->limit_xml_body;
if (!conf->sec_file) {
conf->sec_file = new->sec_file;