openrat-webdav

git clone http://git.code.weiherhei.de/openrat-webdav.git
Log | Files | Refs

commit 59816c810bb066a960221f9a7dcb92c19e8103de
parent 62f3bdb6d52e339a398e196f7c239c1d0ca5379a
Author: Jan Dankert <develop@jandankert.de>
Date:   Thu,  7 Nov 2019 21:54:48 +0100

Fix: Uploading files.

Diffstat:
cms/CMS.class.php | 4++--
dav/method/PUT.class.php | 1+
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/cms/CMS.class.php b/cms/CMS.class.php @@ -104,14 +104,14 @@ class CMS public function fileWrite($id,$value) { - $result = $this->call(CMS_WRITE,'file','save',array('id'=>$id,'file'=>$value) ); + $result = $this->call(CMS_WRITE,'file','edit',array('id'=>$id,'value'=>$value) ); return $result; } public function fileAdd($parentid,$value) { - $result = $this->call(CMS_WRITE,'folder','createfile',array('id'=>$parentid,'file'=>$value) ); + $result = $this->call(CMS_WRITE,'folder','createfile',array('id'=>$parentid,'value'=>$value) ); return $result; } diff --git a/dav/method/PUT.class.php b/dav/method/PUT.class.php @@ -32,6 +32,7 @@ class DAV_PUT extends DAV { Logger::warn('WEBDAV: Creation of files not allowed by configuration' ); $this->httpStatus('405 Not Allowed' ); + return; } $folderid = $this->request->folderid;