diff options
author | Florin Peter <github@florin-peter.de> | 2013-05-30 22:07:36 +0200 |
---|---|---|
committer | Florin Peter <github@florin-peter.de> | 2013-05-30 22:07:36 +0200 |
commit | eaa4f92275a5dea91743eab57423c2b698386e69 (patch) | |
tree | 8341660f19247d4ac1eb4d707bdfd7fde61848e5 /apps/files_encryption/lib/proxy.php | |
parent | b3834b49c3a98e5b7adbb64983f489f0d992c83c (diff) | |
download | nextcloud-server-eaa4f92275a5dea91743eab57423c2b698386e69.tar.gz nextcloud-server-eaa4f92275a5dea91743eab57423c2b698386e69.zip |
added our own file extension .part will not work here if we use file_get_contents so we used our own extension '.etmp'
Diffstat (limited to 'apps/files_encryption/lib/proxy.php')
-rw-r--r-- | apps/files_encryption/lib/proxy.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php index 2e18f7f9201..0df34a38bd7 100644 --- a/apps/files_encryption/lib/proxy.php +++ b/apps/files_encryption/lib/proxy.php @@ -116,7 +116,7 @@ class Proxy extends \OC_FileProxy { return true; } - $handle = fopen('crypt://' . $relativePath . '.part', 'w'); + $handle = fopen('crypt://' . $relativePath . '.etmp', 'w'); if (is_resource($handle)) { // write data to stream @@ -130,10 +130,10 @@ class Proxy extends \OC_FileProxy { \OC_FileProxy::$enabled = false; // get encrypted content - $data = $view->file_get_contents($path . '.part'); + $data = $view->file_get_contents($path . '.etmp'); // remove our temp file - $view->unlink($path . '.part'); + $view->unlink($path . '.etmp'); // re-enable proxy - our work is done \OC_FileProxy::$enabled = $proxyStatus; |