From f2a01dddbce0069387905c7b62bbca6b0cf27a19 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 18 Sep 2014 19:21:04 +0200 Subject: Reenable file proxy when renaming between mount points When moving a folder into another mount point, $renamedFiles is empty because that goes over a different mechanism. In such case, this fix makes sure that the file proxy is reenable to avoid breaking the subsequent files that are being moved. --- apps/files_encryption/hooks/hooks.php | 1 + 1 file changed, 1 insertion(+) (limited to 'apps') diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php index b1e7e8c52a5..1e605244f14 100644 --- a/apps/files_encryption/hooks/hooks.php +++ b/apps/files_encryption/hooks/hooks.php @@ -484,6 +484,7 @@ class Hooks { unset(self::$renamedFiles[$params['oldpath']]); } else { \OCP\Util::writeLog('Encryption library', "can't get path and owner from the file before it was renamed", \OCP\Util::DEBUG); + \OC_FileProxy::$enabled = $proxyStatus; return false; } -- cgit v1.2.3