summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOliver Kohl D.Sc <oliver@kohl.bz>2015-05-26 13:36:45 +0200
committerOliver Kohl D.Sc <oliver@kohl.bz>2015-05-26 13:36:45 +0200
commitf8938f004d6f6aedadca87734a48a4151af6d1a3 (patch)
tree379ed1b9e85e0bb98de1c709835bd1b2f48147f7 /lib
parentd7c18b04bdc67a9239d0f772e2e83144ce83881c (diff)
downloadnextcloud-server-f8938f004d6f6aedadca87734a48a4151af6d1a3.tar.gz
nextcloud-server-f8938f004d6f6aedadca87734a48a4151af6d1a3.zip
Revert "Revert "FIX for webdav.mediencenter.t-online.de""
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/storage/dav.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/files/storage/dav.php b/lib/private/files/storage/dav.php
index 0ddfde15047..52272be2ee5 100644
--- a/lib/private/files/storage/dav.php
+++ b/lib/private/files/storage/dav.php
@@ -743,6 +743,11 @@ class DAV extends Common {
return false;
}
} else {
+ // This resolves issues that are flooding the log file due to some malformed
+ // WebDAV response e.g. T-Mobile's cloud named "Mediencenter"
+ if (!isset($response['{DAV:}getlastmodified']))
+ return false;
+
$remoteMtime = strtotime($response['{DAV:}getlastmodified']);
return $remoteMtime > $time;
}