From 93c75f46e5dacc59362386ec93c1a59a7e057179 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Thu, 26 Jul 2012 23:10:21 -0400 Subject: [PATCH] Forgot data parameter for file_put_contents() streams pre proxies --- lib/filesystemview.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filesystemview.php b/lib/filesystemview.php index a363cee0b8a..7e5f156aca3 100644 --- a/lib/filesystemview.php +++ b/lib/filesystemview.php @@ -201,7 +201,7 @@ class OC_FilesystemView { public function file_put_contents($path, $data) { if(is_resource($data)) {//not having to deal with streams in file_put_contents makes life easier $absolutePath = $this->getAbsolutePath($path); - if (OC_FileProxy::runPreProxies('file_put_contents', $absolutePath) && OC_Filesystem::isValidPath($path)) { + if (OC_FileProxy::runPreProxies('file_put_contents', $absolutePath, $data) && OC_Filesystem::isValidPath($path)) { $path = $this->getRelativePath($absolutePath); $exists = $this->file_exists($path); $run = true; -- 2.39.5