aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib/crypt.php
diff options
context:
space:
mode:
authorSam Tuke <samtuke@owncloud.com>2013-03-09 19:18:34 +0100
committerSam Tuke <samtuke@owncloud.com>2013-03-09 19:18:34 +0100
commitc1f1fbda08b464b286e309283ed81d16f30a5ca6 (patch)
treeafbf2dbd61869eda09f438c083f13bdec47c70cc /apps/files_encryption/lib/crypt.php
parentf2b86d0227d080dd4395efaf5fb086b024af0c95 (diff)
downloadnextcloud-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-xapps/files_encryption/lib/crypt.php4
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;