1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-05 16:55:50 +03:00

http: Enforce that fully qualified uri-paths not to be forward-proxied

have an http(s) scheme, and that the ones to be forward proxied have a
      hostname, per HTTP specifications.

The early checks avoid failing the request later on and thus save cycles
for those invalid cases.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1895921 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yann Ylavic
2021-12-13 18:55:18 +00:00
parent 5c49a85c12
commit 3ec0ffb9e1
7 changed files with 42 additions and 10 deletions

View File

@@ -383,7 +383,7 @@ request_rec *h2_create_request_rec(const h2_request *req, conn_rec *c)
ap_add_input_filter_handle(ap_http_input_filter_handle,
NULL, r, r->connection);
if ((access_status = ap_run_post_read_request(r))) {
if ((access_status = ap_post_read_request(r))) {
/* Request check post hooks failed. An example of this would be a
* request for a vhost where h2 is disabled --> 421.
*/