]> source.dussan.org Git - nextcloud-server.git/commitdiff
Forgot data parameter for file_put_contents() streams pre proxies
authorMichael Gapczynski <mtgap@owncloud.com>
Fri, 27 Jul 2012 03:10:21 +0000 (23:10 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Mon, 30 Jul 2012 14:07:19 +0000 (10:07 -0400)
lib/filesystemview.php

index a363cee0b8a1cbfb904d4eecdd0c2609bd3251c8..7e5f156aca3231777fbc8a22a8b88dc3e5c02312 100644 (file)
@@ -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;