XSendfile and encryption don't work together

The file on disk is encrypted, and not readable on client systems
This commit is contained in:
Bart Visscher 2013-11-14 08:46:15 +01:00 committed by Bjoern Schiessle
parent 40f148cc6c
commit 4c8bc61753
1 changed files with 3 additions and 0 deletions

View File

@ -109,6 +109,9 @@ class OC_Files {
$zip = false;
$filename = $dir . '/' . $files;
$name = $files;
if ($xsendfile && OC_App::isEnabled('files_encryption')) {
$xsendfile = false;
}
}
OC_Util::obEnd();
if ($zip or \OC\Files\Filesystem::isReadable($filename)) {