diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-03-20 16:45:24 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2014-04-02 04:38:54 +0200 |
commit | 1c7a71ca779af16059dd00dbe3dd79097c556ad4 (patch) | |
tree | b2bfd59098a88b450a91e25adb2dbc38cdea2dfc /lib | |
parent | 54a15a80011e50e7b7b9cf9c946c5bd5e82df42b (diff) | |
download | nextcloud-server-1c7a71ca779af16059dd00dbe3dd79097c556ad4.tar.gz nextcloud-server-1c7a71ca779af16059dd00dbe3dd79097c556ad4.zip |
use binary safe read
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/storage/common.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php index 05e031b37ad..9af3a398c1c 100644 --- a/lib/private/files/storage/common.php +++ b/lib/private/files/storage/common.php @@ -159,7 +159,7 @@ abstract class Common implements \OC\Files\Storage\Storage { } public function hash($type, $path, $raw = false) { - $fh = $this->fopen($path, 'r'); + $fh = $this->fopen($path, 'rb'); $ctx = hash_init($type); hash_update_stream($ctx, $fh); fclose($fh); |