]> granicus.if.org Git - apache/commitdiff
we only need to worry about infinite-depth PROPFINDs if they are targeting a
authorGreg Stein <gstein@apache.org>
Fri, 26 Jan 2001 02:24:16 +0000 (02:24 +0000)
committerGreg Stein <gstein@apache.org>
Fri, 26 Jan 2001 02:24:16 +0000 (02:24 +0000)
collection. allow them on plain resources.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87847 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/main/mod_dav.c

index fd525289878ee8463dbcfa430820ea05ffc50904..49d4102f0bbff4947801f50bc0f163523584883d 100644 (file)
@@ -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);