]> source.dussan.org Git - nextcloud-server.git/commitdiff
Merge branch 'master' into file_encryption_util_is_error
authorFlorin Peter <github@florin-peter.de>
Mon, 27 May 2013 12:41:53 +0000 (14:41 +0200)
committerFlorin Peter <github@florin-peter.de>
Mon, 27 May 2013 12:41:53 +0000 (14:41 +0200)
Conflicts:
apps/files_encryption/lib/util.php

1  2 
apps/files_encryption/lib/util.php

index f25ead1f5c3cd6ca1288c4360ca24139752335d3,cac67d496e8261ac34e6c5221e8d03138ca072eb..4171b7cae5053cc723df65616fd0fd8cd8c99fb4
@@@ -442,12 -421,9 +442,12 @@@ class Util 
  
                                                        // If the file uses old
                                                        // encryption system
-                                               } elseif (Crypt::isLegacyEncryptedContent($this->tail($filePath, 3), $relPath)) {
+                                               } elseif ( Crypt::isLegacyEncryptedContent( $data, $relPath ) ) {
  
 -                                                      $found['legacy'][] = array( 'name' => $file, 'path' => $filePath );
 +                                                      $found['legacy'][] = array(
 +                                                              'name' => $file,
 +                                                              'path' => $filePath
 +                                                      );
  
                                                        // If the file is not encrypted
                                                } else {