Skip to content
Snippets Groups Projects
Commit 6bfd8bdf authored by Björn Schießle's avatar Björn Schießle
Browse files

revert last changes

parent 0811d2e3
No related branches found
No related tags found
No related merge requests found
......@@ -348,9 +348,7 @@ class Proxy extends \OC_FileProxy {
// if file is encrypted return real file size
if (is_array($fileInfo) && $fileInfo['encrypted'] === true) {
// try to fix unencrypted file size if it doesn't look plausible
if ((int)$fileInfo['size'] > 0 &&
((int)$fileInfo['unencrypted_size'] === 0 ||
(int)$fileInfo['size'] === (int)$fileInfo['unencrypted_size'])) {
if ((int)$fileInfo['size'] > 0 && (int)$fileInfo['unencrypted_size'] === 0 ) {
$fixSize = $util->getFileSize($path);
$fileInfo['unencrypted_size'] = $fixSize;
// put file info if not .part file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment