From 790d51ea1efeb17c55870a5659a6f49e518d0ebe Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 10 Jun 2014 12:38:19 +0200 Subject: [PATCH] Fix checking for external share in encryption --- apps/files_encryption/lib/proxy.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php index 126a593ee3c..b1af4676852 100644 --- a/apps/files_encryption/lib/proxy.php +++ b/apps/files_encryption/lib/proxy.php @@ -64,7 +64,10 @@ class Proxy extends \OC_FileProxy { // we don't encrypt server-to-server shares list($storage, ) = \OC\Files\Filesystem::resolvePath($path); - if ($storage instanceof OCA\Files_Sharing\External\Storage) { + /** + * @var \OCP\Files\Storage $storage + */ + if ($storage->instanceOfStorage('OCA\Files_Sharing\External\Storage')) { return true; } -- 2.39.5