diff options
author | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-04-20 20:37:01 +0200 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-04-20 20:37:01 +0200 |
commit | cdcabbd0b3f6209b2a312b30a84c381f125bcf68 (patch) | |
tree | b7542987656a5d91f785f4a0570fb3c07ace9df5 /lib/private/files/cache/scanner.php | |
parent | 01b09b4f92f7a73873875b29ad11d39415adfa77 (diff) | |
parent | 0dbcbc4cae2eb669fc73f60a761855a907469111 (diff) | |
download | nextcloud-server-cdcabbd0b3f6209b2a312b30a84c381f125bcf68.tar.gz nextcloud-server-cdcabbd0b3f6209b2a312b30a84c381f125bcf68.zip |
Merge pull request #24098 from owncloud/fix_23782
When calling file_put_contents clear the checksum
Diffstat (limited to 'lib/private/files/cache/scanner.php')
-rw-r--r-- | lib/private/files/cache/scanner.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/files/cache/scanner.php b/lib/private/files/cache/scanner.php index 5ca32548fe0..c16e8515b01 100644 --- a/lib/private/files/cache/scanner.php +++ b/lib/private/files/cache/scanner.php @@ -195,6 +195,8 @@ class Scanner extends BasicEmitter implements IScanner { $fileId = -1; } if (!empty($newData)) { + // Reset the checksum if the data has changed + $newData['checksum'] = ''; $data['fileid'] = $this->addToCache($file, $newData, $fileId); } if (isset($cacheData['size'])) { |