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-Tag: APACHE_2_0_BETA_CANDIDATE_1~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=049fe03dcb60aa80703864f41e7b6ebbff22be79;p=thirdparty%2Fapache%2Fhttpd.git 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 fd525289878..49d4102f0bb 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);