From: Florin Peter Date: Sat, 27 Apr 2013 18:22:38 +0000 (+0200) Subject: check if file exists before fixing file size X-Git-Tag: v6.0.0alpha2~743^2~149 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=770aebfb9ed7703010ee2bceca73dee35f660c00;p=nextcloud-server.git check if file exists before fixing file size --- diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php index 9d9e420e4d3..a9996999a3a 100644 --- a/apps/files_encryption/lib/util.php +++ b/apps/files_encryption/lib/util.php @@ -453,7 +453,7 @@ class Util { $proxyStatus = \OC_FileProxy::$enabled; \OC_FileProxy::$enabled = false; - if ($this->isEncryptedPath($path)) { + if ($this->view->file_exists($path) && $this->isEncryptedPath($path)) { // Reformat path for use with OC_FSV $pathSplit = explode( '/', $path );