File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1+ *) mod_dav: Add API to expose DavBasePath setting. [Joe Orton]
2+
Original file line number Diff line number Diff line change 733733 * 20211221.25 (2.5.1-dev) AP_SLASHES and AP_IS_SLASH
734734 * 20211221.26 (2.5.1-dev) Add is_host_matchable to proxy_worker_shared
735735 * 20211221.27 (2.5.1-dev) Add sock_proto to proxy_worker_shared, and AP_LISTEN_MPTCP
736+ * 20211221.28 (2.5.1-dev) Add dav_get_base_path() to mod_dav
736737 */
737738
738739#define MODULE_MAGIC_COOKIE 0x41503235UL /* "AP25" */
739740
740741#ifndef MODULE_MAGIC_NUMBER_MAJOR
741742#define MODULE_MAGIC_NUMBER_MAJOR 20211221
742743#endif
743- #define MODULE_MAGIC_NUMBER_MINOR 27 /* 0...n */
744+ #define MODULE_MAGIC_NUMBER_MINOR 28 /* 0...n */
744745
745746/**
746747 * Determine if the server's current MODULE_MAGIC_NUMBER is at least a
Original file line number Diff line number Diff line change @@ -263,6 +263,13 @@ DAV_DECLARE(const dav_hooks_search *) dav_get_search_hooks(request_rec *r)
263263 return dav_get_provider (r )-> search ;
264264}
265265
266+ DAV_DECLARE (const char * ) dav_get_base_path (request_rec * r )
267+ {
268+ dav_dir_conf * conf = ap_get_module_config (r -> per_dir_config , & dav_module );
269+
270+ return conf && conf -> base ? conf -> base : NULL ;
271+ }
272+
266273/*
267274 * Command handler for the DAV directive, which is TAKE1.
268275 */
Original file line number Diff line number Diff line change @@ -436,6 +436,11 @@ typedef struct dav_locktoken dav_locktoken;
436436DAV_DECLARE (dav_error * ) dav_get_resource (request_rec * r , int label_allowed ,
437437 int use_checked_in , dav_resource * * res_p );
438438
439+ /*
440+ ** If DavBasePath is configured for the request location, return the
441+ ** configured path, otherwise NULL.
442+ */
443+ DAV_DECLARE (const char * ) dav_get_base_path (request_rec * r );
439444
440445/* --------------------------------------------------------------------
441446**
You can’t perform that action at this time.
0 commit comments