]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix for webdav
authorFlorin Peter <github@florin-peter.de>
Fri, 10 May 2013 22:23:30 +0000 (00:23 +0200)
committerFlorin Peter <github@florin-peter.de>
Fri, 10 May 2013 22:23:30 +0000 (00:23 +0200)
apps/files_encryption/lib/proxy.php
apps/files_encryption/lib/stream.php
apps/files_encryption/lib/util.php

index ae36b9fe09f345fc337d3ca48f3f0219c5d5bba7..3f8b8571252332a85a266a35e75a81c4d150fb84 100644 (file)
@@ -492,7 +492,7 @@ class Proxy extends \OC_FileProxy {
                 if($fixSize > 0) {
                     $size = $fixSize;
 
-                    $fileInfo['encrypted'] = 1;
+                    $fileInfo['encrypted'] = true;
                     $fileInfo['unencrypted_size'] = $size;
 
                     // put file info
index c2b13b00b24503c7b4f648901a9faeac853dd08a..33b3255e2af5bf71db5b68a1be20862f487179bb 100644 (file)
@@ -519,7 +519,7 @@ class Stream {
             }
 
             // set encryption data
-            $fileInfo['encrypted'] = 1;
+            $fileInfo['encrypted'] = true;
             $fileInfo['size'] = $this->size;
             $fileInfo['unencrypted_size'] = $this->unencryptedSize;
 
index 04b1e66f58a6e3b6eced97be7fb96cea373588ea..ae8c7ffd5759ee4fc5aa82340bd1f779c3a5030e 100644 (file)
@@ -94,7 +94,7 @@ class Util {
        // Integration testing:
        
        //// TODO: test new encryption with versioning
-       //// TODO: test new encryption with sharing
+       //// DONE: test new encryption with sharing
        //// TODO: test new encryption with proxies
        
        
@@ -533,7 +533,7 @@ class Util {
                if ( $realSize > 0 ) {
                
                        $cached = $this->view->getFileInfo( $path );
-                       $cached['encrypted'] = 1;
+                       $cached['encrypted'] = true;
 
                        // set the size
                        $cached['unencrypted_size'] = $realSize;