mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
fix temporary file based common hash
This commit is contained in:
parent
fffe330bbc
commit
7a8f1389fe
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue