diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-03-14 17:18:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-14 17:18:29 +0100 |
commit | f87bab8ce2c871a0d4c8259c1ff7f7df58c4e8ea (patch) | |
tree | fb0ee804c67d98cfb223f93759e0a5630ffc26ff /lib/private | |
parent | 6fcf729545705b3141cae59928fb44d547b636b9 (diff) | |
parent | 631ae17dce8335d8cdb4669060cd828efe6b294d (diff) | |
download | nextcloud-server-f87bab8ce2c871a0d4c8259c1ff7f7df58c4e8ea.tar.gz nextcloud-server-f87bab8ce2c871a0d4c8259c1ff7f7df58c4e8ea.zip |
Merge pull request #14684 from nextcloud/long-etag-dav
handle long etags from dav external storage
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Files/Storage/DAV.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php index abb76660ca8..52ed8900569 100644 --- a/lib/private/Files/Storage/DAV.php +++ b/lib/private/Files/Storage/DAV.php @@ -726,7 +726,11 @@ class DAV extends Common { return null; } if (isset($response['{DAV:}getetag'])) { - return trim($response['{DAV:}getetag'], '"'); + $etag = trim($response['{DAV:}getetag'], '"'); + if (strlen($etag) > 40) { + $etag = md5($etag); + } + return $etag; } return parent::getEtag($path); } |