diff options
author | Yann Ylavic <ylavic@apache.org> | 2020-06-24 09:47:58 +0200 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2020-06-24 09:47:58 +0200 |
commit | 6defe5493dfa8f713a69f6cc56623ad70373ad6a (patch) | |
tree | 80ba6e3d1c0d74a3f116f9c9d31bfd4a448d8374 /include/http_request.h | |
parent | * modules/generators/mod_cgid.c (get_req): Add basic sanity (diff) | |
download | apache2-6defe5493dfa8f713a69f6cc56623ad70373ad6a.tar.xz apache2-6defe5493dfa8f713a69f6cc56623ad70373ad6a.zip |
Follow up to r1879079, r1879080: change to DONE semantics for pre_trans hooks.
Don't decode r->uri when pre_trans returns DONE instead of OK, which allows to
preserve previous behaviour where decoding was avoided for "ProxyRequests on"
or post_read_request RewriteRule [P] only, but not ProxyPass'ed requests.
This also preserves decoded location walk in most/same cases.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879137 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/http_request.h')
-rw-r--r-- | include/http_request.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/http_request.h b/include/http_request.h index 8f283975ea..93defac285 100644 --- a/include/http_request.h +++ b/include/http_request.h @@ -366,7 +366,10 @@ AP_DECLARE_HOOK(int,create_request,(request_rec *r)) * This hook allow modules an opportunity to translate the URI into an * actual filename, before URL decoding happens. * @param r The current request - * @return OK, DECLINED, or HTTP_... + * @return DECLINED to let other modules handle the pre-translation, + * OK if it was handled and no other module should process it, + * DONE if no further transformation should happen on the URI, + * HTTP_... in case of error. * @ingroup hooks */ AP_DECLARE_HOOK(int,pre_translate_name,(request_rec *r)) |