summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2005-08-19 13:56:32 +0000
committerJan Kneschke <jan@kneschke.de>2005-08-19 13:56:32 +0000
commite2a32465f395a76299e64aee62d76eccd14ecb00 (patch)
tree7e8d36353d7ccd2510d0ca9c30a9f1c2115f519b
parente37805c9b4e51e541a083f2ded9284a9acaddacc (diff)
downloadlighttpd-git-e2a32465f395a76299e64aee62d76eccd14ecb00.tar.gz
does include the parent directory in the PROPFIND output
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@585 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r--src/mod_webdav.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mod_webdav.c b/src/mod_webdav.c
index 5c4fe94e..ce617583 100644
--- a/src/mod_webdav.c
+++ b/src/mod_webdav.c
@@ -408,7 +408,9 @@ URIHANDLER_FUNC(mod_webdav_subrequest_handler) {
while(NULL != (de = readdir(dir))) {
if (de->d_name[0] == '.' && de->d_name[1] == '\0') {
- /* ignore the currrent dir */
+ /* ignore the current dir */
+ } else if (de->d_name[0] == '.' && de->d_name[1] == '.' && de->d_name[2] == '\0') {
+ /* ignore the parent dir */
} else {
get_response_entry(srv, con, p, b, de->d_name);
}