From: Jim Jagielski Date: Thu, 9 Aug 2018 11:30:10 +0000 (+0000) Subject: Patch PR 62567. Fix by Michal Karm Babacek X-Git-Tag: 2.5.0-alpha2-ci-test-only~2401 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca78ac0107b0515b7daafd6e9ce52513f6bde4e1;p=thirdparty%2Fapache%2Fhttpd.git Patch PR 62567. Fix by Michal Karm Babacek git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1837717 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 3da3fcb53b7..e630d112d0f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -977,11 +977,11 @@ SET(rel_runtimedir "logs") SET(rel_sysconfdir "conf") FILE(GLOB_RECURSE conffiles RELATIVE ${CMAKE_SOURCE_DIR}/docs/conf "docs/conf/*") FOREACH(template ${conffiles}) - STRING(REPLACE ".conf.in" ".conf" conf ${template}) + STRING(REPLACE ".conf.in" ".conf" conf "${template}") FILE(READ "docs/conf/${template}" template_text) IF(template MATCHES ".conf.in$") # substitute @var@/@@var@@ in .conf.in - STRING(REPLACE "@@" "@" template_text ${template_text}) + STRING(REPLACE "@@" "@" template_text "${template_text}") STRING(CONFIGURE "${template_text}" template_text @ONLY) ENDIF() FILE(WRITE ${CMAKE_BINARY_DIR}/conf/original/${conf} "${template_text}") diff --git a/configure.in b/configure.in index 0eac9e0d6e1..22b9d596e80 100644 --- a/configure.in +++ b/configure.in @@ -1029,7 +1029,7 @@ AC_SUBST(ap_make_delimiter) dnl Ensure that docs/conf is created. test -d docs/conf||$mkdir_p docs/conf -AC_CONFIG_FILES(docs/conf/httpd.conf docs/conf/extra/httpd-autoindex.conf docs/conf/extra/httpd-dav.conf docs/conf/extra/httpd-default.conf docs/conf/extra/httpd-info.conf docs/conf/extra/httpd-languages.conf docs/conf/extra/httpd-manual.conf docs/conf/extra/httpd-mpm.conf docs/conf/extra/httpd-multilang-errordoc.conf docs/conf/extra/httpd-policy.conf docs/conf/extra/httpd-ssl.conf docs/conf/extra/httpd-userdir.conf docs/conf/extra/httpd-vhosts.conf docs/conf/extra/proxy-html.conf include/ap_config_layout.h support/apxs support/apachectl support/dbmmanage support/envvars-std support/log_server_status support/logresolve.pl support/phf_abuse_log.cgi support/split-logfile build/rules.mk build/pkg/pkginfo build/config_vars.sh) +AC_CONFIG_FILES(docs/conf/httpd.conf docs/conf/extra/httpd-autoindex.conf docs/conf/extra/httpd-dav.conf docs/conf/extra/httpd-default.conf docs/conf/extra/httpd-info.conf docs/conf/extra/httpd-languages.conf docs/conf/extra/httpd-manual.conf docs/conf/extra/httpd-mpm.conf docs/conf/extra/httpd-multilang-errordoc.conf docs/conf/extra/httpd-policy.conf docs/conf/extra/httpd-ssl.conf docs/conf/extra/httpd-userdir.conf docs/conf/extra/httpd-vhosts.conf docs/conf/extra/proxy-html.conf docs/conf/extra/httpd-macro.conf include/ap_config_layout.h support/apxs support/apachectl support/dbmmanage support/envvars-std support/log_server_status support/logresolve.pl support/phf_abuse_log.cgi support/split-logfile build/rules.mk build/pkg/pkginfo build/config_vars.sh) AC_CONFIG_COMMANDS([default], [true], [APACHE_GEN_MAKEFILES]) AC_OUTPUT diff --git a/docs/conf/extra/httpd-policy.conf.in b/docs/conf/extra/httpd-policy.conf.in index 966c82a20c4..ff28d28c0da 100644 --- a/docs/conf/extra/httpd-policy.conf.in +++ b/docs/conf/extra/httpd-policy.conf.in @@ -1,4 +1,3 @@ - # # Load the module if not already present @@ -12,32 +11,32 @@ SetOutputFilter POLICY_TYPE;POLICY_LENGTH;POLICY_KEEPALIVE;POLICY_VARY;POLICY_VALIDATION;POLICY_CONDITIONAL;POLICY_NOCACHE;POLICY_MAXAGE - # content type must be present and valid, but can be anything
- PolicyType enforce */*
+ # content type must be present and valid, but can be anything + PolicyType enforce */* - # reject if no explicitly declared content length
- PolicyLength enforce
+ # reject if no explicitly declared content length + PolicyLength enforce - # covered by the policy length filter
- PolicyKeepalive ignore
+ # covered by the policy length filter + PolicyKeepalive ignore - # reject if User-Agent appears within Vary headers
- PolicyVary enforce User-Agent
+ # reject if User-Agent appears within Vary headers + PolicyVary enforce User-Agent - # we want to enforce validation
- PolicyValidation enforce
+ # we want to enforce validation + PolicyValidation enforce - # non-functional conditional responses should be rejected
- PolicyConditional enforce
+ # non-functional conditional responses should be rejected + PolicyConditional enforce - # no-cache responses should be rejected
- PolicyNocache enforce
+ # no-cache responses should be rejected + PolicyNocache enforce - # maxage must be at least a day
- PolicyMaxage enforce 86400
+ # maxage must be at least a day + PolicyMaxage enforce 86400 - # request version can be anything
- PolicyVersion ignore HTTP/1.1
+ # request version can be anything + PolicyVersion ignore HTTP/1.1 # define documentation links PolicyConditionalURL http://httpd.apache.org/docs/trunk/compliance.html#policyconditional @@ -57,5 +56,3 @@ PolicyFilter off - - diff --git a/docs/conf/httpd.conf.in b/docs/conf/httpd.conf.in index b793a79e00d..4e0418c4b95 100644 --- a/docs/conf/httpd.conf.in +++ b/docs/conf/httpd.conf.in @@ -405,7 +405,7 @@ LogLevel warn #Include @rel_sysconfdir@/extra/httpd-policy.conf # Configuration macros -#Included @rel_sysconfdir@/extra/httpd-macro.conf +#Include @rel_sysconfdir@/extra/httpd-macro.conf # Configure mod_proxy_html to understand HTML4/XHTML1