Depth: 1 PROPFIND request have to include the requested collection too
- this fixes an error with kde ioslave for webdav seen in krusader git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@913 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
ab8493f603
commit
cd4fd6f4d3
|
@ -1176,19 +1176,23 @@ URIHANDLER_FUNC(mod_webdav_subrequest_handler) {
|
|||
d.rel_path = buffer_init();
|
||||
|
||||
while(NULL != (de = readdir(dir))) {
|
||||
if ((de->d_name[0] == '.' && de->d_name[1] == '\0') ||
|
||||
(de->d_name[0] == '.' && de->d_name[1] == '.' && de->d_name[2] == '\0')) {
|
||||
if (de->d_name[0] == '.' && de->d_name[1] == '.' && de->d_name[2] == '\0') {
|
||||
continue;
|
||||
/* ignore the parent dir */
|
||||
}
|
||||
|
||||
buffer_copy_string_buffer(d.path, dst->path);
|
||||
BUFFER_APPEND_SLASH(d.path);
|
||||
buffer_append_string(d.path, de->d_name);
|
||||
|
||||
|
||||
buffer_copy_string_buffer(d.rel_path, dst->rel_path);
|
||||
BUFFER_APPEND_SLASH(d.rel_path);
|
||||
buffer_append_string(d.rel_path, de->d_name);
|
||||
|
||||
if (de->d_name[0] == '.' && de->d_name[1] == '\0') {
|
||||
/* don't append the . */
|
||||
} else {
|
||||
buffer_append_string(d.path, de->d_name);
|
||||
buffer_append_string(d.rel_path, de->d_name);
|
||||
}
|
||||
|
||||
buffer_reset(prop_200);
|
||||
buffer_reset(prop_404);
|
||||
|
|
Loading…
Reference in New Issue