]> source.dussan.org Git - nextcloud-server.git/commitdiff
Removed debugging output
authorSam Tuke <samtuke@owncloud.com>
Tue, 5 Feb 2013 16:11:50 +0000 (16:11 +0000)
committerSam Tuke <samtuke@owncloud.com>
Tue, 5 Feb 2013 16:11:50 +0000 (16:11 +0000)
apps/files_encryption/lib/crypt.php
apps/files_encryption/lib/util.php

index ff7d6dfb1fd71dcda08af78d08cd334bfa5e8a74..e3ffacabc9a829176cbcf746889e61414e9cd90e 100755 (executable)
@@ -187,16 +187,10 @@ class Crypt {
          * @return true / false\r
          */\r
        public static function isLegacyEncryptedContent( $data, $relPath ) {\r
-               \r
-//             trigger_error("REL PATH = ".var_export($relPath, 1));\r
-               \r
-//             trigger_error( "DATA = ".var_export($data, 1). "   CATFILE?: ".var_export( self::isCatfile( $data ), 1));\r
        \r
                // Fetch all file metadata from DB\r
                $metadata = \OC\Files\Filesystem::getFileInfo( $relPath, '' );\r
                \r
-               trigger_error("PATH = ". var_export($relPath, 1)."   METADATA = ".var_export($metadata['encrypted'], 1));\r
-               \r
                // If a file is flagged with encryption in DB, but isn't a \r
                // valid content + IV combination, it's probably using the \r
                // legacy encryption system\r
index a16bf9416005327fe09a597cab06057025961a9b..355ffb90ef0ea4a81ab5ac95b1fd13f59e67a0c8 100644 (file)
@@ -269,8 +269,6 @@ class Util {
                                                
                                                $data = $this->view->file_get_contents( $filePath );
                                                
-//                                             trigger_error("HAKE \n".var_export($this->view->file_get_contents( $filePath ), 1)." \nfilepath = ".var_export($filePath, 1 ));
-                                               
                                                // If the file is encrypted
                                                // NOTE: If the userId is 
                                                // empty or not set, file will 
@@ -366,8 +364,6 @@ class Util {
        
                if ( $found = $this->findFiles( $dirPath ) ) {
                
-//             trigger_error("FOUND = ".print_r($found, 1));
-               
                        // Disable proxy to prevent file being encrypted twice
                        \OC_FileProxy::$enabled = false;
                
@@ -407,8 +403,6 @@ class Util {
                                        // Fetch data from file
                                        $legacyData = $this->view->file_get_contents( $legacyFile['path'] );
                                
-                                       trigger_error("\n\nlegdata = ".var_export($legacyData, 1).' \n\npassphrase = '.var_export($legacyPassphrase, 1).' \n\npublickey = '.var_export($publicKey, 1).' \n\nnewpass = '.var_export($newPassphrase, 1));
-                               
                                        // Recrypt data, generate catfile
                                        $recrypted = Crypt::legacyKeyRecryptKeyfile( $legacyData, $legacyPassphrase, $publicKey, $newPassphrase );