Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2019-04-02 18:16:27 +0300
committerPhie <phie@phie.ovh>2019-04-02 18:16:27 +0300
commit6525105f8230649c11805cccc4732623a21ada27 (patch)
tree1acf6ac4a5c203d5073f6818ae83e1636532c59f
parent829f9486fb2845486c40b0d31776a1ba77421b7b (diff)
removing pet
-rwxr-xr-xlib/Controller/NoteController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/NoteController.php b/lib/Controller/NoteController.php
index 8440983..0b7dfa7 100755
--- a/lib/Controller/NoteController.php
+++ b/lib/Controller/NoteController.php
@@ -471,7 +471,7 @@
public function getMedia($note, $media){
$tmppath = tempnam(sys_get_temp_dir(), uniqid().".zip");
$node = $this->CarnetFolder->get($note);
- $response = "pet";
+ $response = null;
file_put_contents($tmppath, $node->fopen("r"));
try{
$zipFile = new \PhpZip\ZipFile();