diff options
author | Sam Tuke <samtuke@owncloud.com> | 2013-03-09 19:18:34 +0100 |
---|---|---|
committer | Sam Tuke <samtuke@owncloud.com> | 2013-03-09 19:18:34 +0100 |
commit | c1f1fbda08b464b286e309283ed81d16f30a5ca6 (patch) | |
tree | afbf2dbd61869eda09f438c083f13bdec47c70cc /apps/files_encryption/lib/crypt.php | |
parent | f2b86d0227d080dd4395efaf5fb086b024af0c95 (diff) | |
download | nextcloud-server-c1f1fbda08b464b286e309283ed81d16f30a5ca6.tar.gz nextcloud-server-c1f1fbda08b464b286e309283ed81d16f30a5ca6.zip |
Fixed stream wrapper bugs
Switched encryptAll() to use stream-based instead of file-at-a-time encryption
Development snapshot
Diffstat (limited to 'apps/files_encryption/lib/crypt.php')
-rwxr-xr-x | apps/files_encryption/lib/crypt.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_encryption/lib/crypt.php b/apps/files_encryption/lib/crypt.php index 2be6e3ae5d9..f92930c2cbd 100755 --- a/apps/files_encryption/lib/crypt.php +++ b/apps/files_encryption/lib/crypt.php @@ -114,7 +114,7 @@ class Crypt { * @return true / false
* @note see also OCA\Encryption\Util->isEncryptedPath()
*/
- public static function isCatfile( $content ) {
+ public static function isCatfileContent( $content ) {
if ( !$content ) {
@@ -179,7 +179,7 @@ class Crypt { if (
isset( $metadata['encrypted'] )
and $metadata['encrypted'] === true
- and ! self::isCatfile( $data )
+ and ! self::isCatfileContent( $data )
) {
return true;
|