summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-03-21 13:23:14 +0100
committerRobin Appelman <icewind@owncloud.com>2014-03-21 13:23:14 +0100
commit7a8f1389fec7db92e1da4f4d46bf0b2737bd3482 (patch)
tree079920a7ed1ff2e693b1dc9c3d1ab975cc6bd880 /lib/private
parentfffe330bbccee617cac6d84d1f4097133de82e44 (diff)
downloadnextcloud-server-7a8f1389fec7db92e1da4f4d46bf0b2737bd3482.tar.gz
nextcloud-server-7a8f1389fec7db92e1da4f4d46bf0b2737bd3482.zip
fix temporary file based common hash
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/files/storage/common.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php
index 3c078d7b1b4..2b697141515 100644
--- a/lib/private/files/storage/common.php
+++ b/lib/private/files/storage/common.php
@@ -160,8 +160,7 @@ abstract class Common implements \OC\Files\Storage\Storage {
public function hash($type, $path, $raw = false) {
$tmpFile = $this->getLocalFile($path);
- $hash = hash($type, $tmpFile, $raw);
- unlink($tmpFile);
+ $hash = hash_file($type, $tmpFile, $raw);
return $hash;
}