]> granicus.if.org Git - apache/commit
Merge r1667676, r1826207 from trunk:
authorJoe Orton <jorton@apache.org>
Fri, 9 Mar 2018 09:19:44 +0000 (09:19 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 9 Mar 2018 09:19:44 +0000 (09:19 +0000)
commitdda68034a8b2962da6dc6915c139ae901ca43dba
treeab35dcdaee257c6cbc624de1018ae4a1e616d037
parenta67e53d5e3c7c3f8c2ec4a4b07af3ee93b99f8ca
Merge r1667676, r1826207 from trunk:

* mod_access_compat, mod_authz_host: Handle '#' character.
For mod_access_compat, disable '#' in hostname completely.
For mod_authz_host, treat '#' as a comment and ignore everything after that.
This allows better handling of admin errors like
'Require host localhost# Add example.com later'.

* modules/aaa/mod_authz_host.c (host_check_authorization): Simplify
  comment stripping in "Require host"; log a warning if a comment is
  used in 'Require host', or an error if the expression is empty with
  the comment stripped. (Currently in 2.4, #comment part is parsed)

Submitted by: jkaluza, jorton
Reviewed by: jorton, jim, ylavic

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1826309 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/aaa/mod_access_compat.c
modules/aaa/mod_authz_host.c