]> source.dussan.org Git - nextcloud-server.git/commitdiff
check if file exists before fixing file size
authorFlorin Peter <github@florin-peter.de>
Sat, 27 Apr 2013 18:22:38 +0000 (20:22 +0200)
committerFlorin Peter <github@florin-peter.de>
Sat, 27 Apr 2013 18:22:38 +0000 (20:22 +0200)
apps/files_encryption/lib/util.php

index 9d9e420e4d3f5e4c2f78fabf5ea274d5520b4261..a9996999a3a3cbe623433aaebb53c585404c5bbf 100644 (file)
@@ -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 );