summaryrefslogtreecommitdiff
path: root/server/request.c
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2020-06-22 10:32:15 +0000
committerYann Ylavic <ylavic@apache.org>2020-06-22 10:32:15 +0000
commitd2c7a48ff6dadfc582e07c3c46920f44e3bcbb78 (patch)
treece8caa2725d4c2964208df5373e788ed8e5505b0 /server/request.c
parent4004ce236575d8b0a8c0d001352742055a8c76c3 (diff)
downloadhttpd-d2c7a48ff6dadfc582e07c3c46920f44e3bcbb78.tar.gz
Add pre_translate_name hook running before URI-path decoding.
This allows any module to work with un-decoded URI-path (besides unreserved characters) in r->uri, and eventually to avoid decoding by returning OK. The first candidate is mod_proxy (following commit) when ProxyMappingDecoded is disabled, such that the forwarded URI is equivalent to the original one. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879076 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/request.c')
-rw-r--r--server/request.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/request.c b/server/request.c
index 1e9a15a28a..e00ed69d3e 100644
--- a/server/request.c
+++ b/server/request.c
@@ -59,6 +59,7 @@
#define APLOG_MODULE_INDEX AP_CORE_MODULE_INDEX
APR_HOOK_STRUCT(
+ APR_HOOK_LINK(pre_translate_name)
APR_HOOK_LINK(translate_name)
APR_HOOK_LINK(map_to_storage)
APR_HOOK_LINK(check_user_id)
@@ -74,6 +75,8 @@ APR_HOOK_STRUCT(
APR_HOOK_LINK(force_authn)
)
+AP_IMPLEMENT_HOOK_RUN_FIRST(int,pre_translate_name,
+ (request_rec *r), (r), DECLINED)
AP_IMPLEMENT_HOOK_RUN_FIRST(int,translate_name,
(request_rec *r), (r), DECLINED)
AP_IMPLEMENT_HOOK_RUN_FIRST(int,map_to_storage,