From: Greg Stein Date: Fri, 26 Jan 2001 02:24:16 +0000 (+0000) Subject: we only need to worry about infinite-depth PROPFINDs if they are targeting a X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb226cdb52bf782d254841ab896c8283d54d2017;p=apache we only need to worry about infinite-depth PROPFINDs if they are targeting a collection. allow them on plain resources. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87847 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/dav/main/mod_dav.c b/modules/dav/main/mod_dav.c index fd52528987..49d4102f0b 100644 --- a/modules/dav/main/mod_dav.c +++ b/modules/dav/main/mod_dav.c @@ -1887,7 +1887,7 @@ static int dav_method_propfind(request_rec *r) return HTTP_BAD_REQUEST; } - if (depth == DAV_INFINITY) { + if (depth == DAV_INFINITY && resource->collection) { dav_dir_conf *conf; conf = (dav_dir_conf *) ap_get_module_config(r->per_dir_config, &dav_module);