Branch: Tag:

2010-03-31

2010-03-31 13:47:11 by Martin Jonsson <marty@roxen.com>

Fix WebDAV bug where PROPFIND didn't work on directories if the client sent a "0" Depth header. That made the OS X webdavfs client unable to mount directories.

Rev: server/base_server/module.pike:1.242

1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2009, Roxen IS. - // $Id: module.pike,v 1.241 2009/11/24 15:21:51 stewa Exp $ + // $Id: module.pike,v 1.242 2010/03/31 13:47:11 marty Exp $      #include <module_constants.h>   #include <module.h>
590:    if (properties->get_stat()->isdir) {    if (depth <= 0) {    SIMPLE_TRACE_LEAVE ("Not recursing due to depth limit"); -  return 0; +  return ([]);    }    depth--;    foreach(find_dir(path, id) || ({}), string filename) {