fix for webdav

This commit is contained in:
Florin Peter 2013-05-11 00:23:30 +02:00
parent dc8164a3f0
commit e88595638c
3 changed files with 4 additions and 4 deletions

View File

@ -492,7 +492,7 @@ class Proxy extends \OC_FileProxy {
if($fixSize > 0) { if($fixSize > 0) {
$size = $fixSize; $size = $fixSize;
$fileInfo['encrypted'] = 1; $fileInfo['encrypted'] = true;
$fileInfo['unencrypted_size'] = $size; $fileInfo['unencrypted_size'] = $size;
// put file info // put file info

View File

@ -519,7 +519,7 @@ class Stream {
} }
// set encryption data // set encryption data
$fileInfo['encrypted'] = 1; $fileInfo['encrypted'] = true;
$fileInfo['size'] = $this->size; $fileInfo['size'] = $this->size;
$fileInfo['unencrypted_size'] = $this->unencryptedSize; $fileInfo['unencrypted_size'] = $this->unencryptedSize;

View File

@ -94,7 +94,7 @@ class Util {
// Integration testing: // Integration testing:
//// TODO: test new encryption with versioning //// TODO: test new encryption with versioning
//// TODO: test new encryption with sharing //// DONE: test new encryption with sharing
//// TODO: test new encryption with proxies //// TODO: test new encryption with proxies
@ -533,7 +533,7 @@ class Util {
if ( $realSize > 0 ) { if ( $realSize > 0 ) {
$cached = $this->view->getFileInfo( $path ); $cached = $this->view->getFileInfo( $path );
$cached['encrypted'] = 1; $cached['encrypted'] = true;
// set the size // set the size
$cached['unencrypted_size'] = $realSize; $cached['unencrypted_size'] = $realSize;