diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-07-22 15:13:56 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-12-30 16:55:35 +0100 |
commit | b8046e2ba4f8d80cd8fda4dd078348d5bcf46bbc (patch) | |
tree | b65436a3a20c1d639d8d104ec628375119aac283 | |
parent | 21254b02ebe696ba1028ae91180e21d797061f00 (diff) | |
download | nextcloud-server-b8046e2ba4f8d80cd8fda4dd078348d5bcf46bbc.tar.gz nextcloud-server-b8046e2ba4f8d80cd8fda4dd078348d5bcf46bbc.zip |
Align checksum dav property with desktop client parsing
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | apps/dav/lib/Connector/Sabre/ChecksumList.php | 2 | ||||
-rw-r--r-- | lib/public/Files/FileInfo.php | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/ChecksumList.php b/apps/dav/lib/Connector/Sabre/ChecksumList.php index 44573de03c8..8e01dcc0f4b 100644 --- a/apps/dav/lib/Connector/Sabre/ChecksumList.php +++ b/apps/dav/lib/Connector/Sabre/ChecksumList.php @@ -38,7 +38,7 @@ class ChecksumList implements XmlSerializable { private array $checksums; public function __construct(string $checksum) { - $this->checksums = explode(',', $checksum); + $this->checksums = explode(' ', $checksum); } /** diff --git a/lib/public/Files/FileInfo.php b/lib/public/Files/FileInfo.php index 92c191b63e0..14edf6a7645 100644 --- a/lib/public/Files/FileInfo.php +++ b/lib/public/Files/FileInfo.php @@ -256,7 +256,10 @@ interface FileInfo { public function getOwner(); /** - * Get the stored checksum for this file + * Get the stored checksum(s) for this file + * + * Checksums are stored in the format TYPE:CHECKSUM, here may be multiple checksums separated by a single space + * e.g. MD5:d3b07384d113edec49eaa6238ad5ff00 SHA1:f1d2d2f924e986ac86fdf7b36c94bcdf32beec15 * * @return string * @since 9.0.0 |