diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-10 13:40:47 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-10 13:40:47 -0400 |
commit | e1bde1a78eac82f981358e68af031d974ca81639 (patch) | |
tree | c9ccba7ab7aab6a5461a720d875c818bafad2b4a /3rdparty | |
parent | 80660bdc071632f699ea2051d56f03cc887948e6 (diff) | |
parent | fbf86c6683da91c8cadad128e5ac7c0742aaffed (diff) | |
download | nextcloud-server-e1bde1a78eac82f981358e68af031d974ca81639.tar.gz nextcloud-server-e1bde1a78eac82f981358e68af031d974ca81639.zip |
Merge branch 'master' into sharing
Conflicts:
files/templates/index.php
Diffstat (limited to '3rdparty')
-rw-r--r-- | 3rdparty/Sabre/CardDAV/Card.php | 2 | ||||
-rw-r--r-- | 3rdparty/Sabre/DAV/Browser/Plugin.php | 6 | ||||
-rw-r--r-- | 3rdparty/Sabre/DAV/Server.php | 12 |
3 files changed, 16 insertions, 4 deletions
diff --git a/3rdparty/Sabre/CardDAV/Card.php b/3rdparty/Sabre/CardDAV/Card.php index 98189aa9fd8..52d8b79d7dd 100644 --- a/3rdparty/Sabre/CardDAV/Card.php +++ b/3rdparty/Sabre/CardDAV/Card.php @@ -122,7 +122,7 @@ class Sabre_CardDAV_Card extends Sabre_DAV_File implements Sabre_CardDAV_ICard, */ public function getETag() { - return md5($this->cardData['carddata']); + return '"' . md5($this->cardData['carddata']) . '"'; } diff --git a/3rdparty/Sabre/DAV/Browser/Plugin.php b/3rdparty/Sabre/DAV/Browser/Plugin.php index 81a90558f93..8e0ca24cff2 100644 --- a/3rdparty/Sabre/DAV/Browser/Plugin.php +++ b/3rdparty/Sabre/DAV/Browser/Plugin.php @@ -94,7 +94,7 @@ class Sabre_DAV_Browser_Plugin extends Sabre_DAV_ServerPlugin { public function httpPOSTHandler($method, $uri) { if ($method!='POST') return true; - if (isset($_POST['action'])) switch($_POST['action']) { + if (isset($_POST['sabreAction'])) switch($_POST['sabreAction']) { case 'mkcol' : if (isset($_POST['name']) && trim($_POST['name'])) { @@ -249,13 +249,13 @@ class Sabre_DAV_Browser_Plugin extends Sabre_DAV_ServerPlugin { if ($this->enablePost) { $html.= '<tr><td><form method="post" action=""> <h3>Create new folder</h3> - <input type="hidden" name="action" value="mkcol" /> + <input type="hidden" name="sabreAction" value="mkcol" /> Name: <input type="text" name="name" /><br /> <input type="submit" value="create" /> </form> <form method="post" action="" enctype="multipart/form-data"> <h3>Upload file</h3> - <input type="hidden" name="action" value="put" /> + <input type="hidden" name="sabreAction" value="put" /> Name (optional): <input type="text" name="name" /><br /> File: <input type="file" name="file" /><br /> <input type="submit" value="upload" /> diff --git a/3rdparty/Sabre/DAV/Server.php b/3rdparty/Sabre/DAV/Server.php index e5e9e482fee..c6c63143d13 100644 --- a/3rdparty/Sabre/DAV/Server.php +++ b/3rdparty/Sabre/DAV/Server.php @@ -1397,6 +1397,18 @@ class Sabre_DAV_Server { } /** + * This method is invoked by sub-systems creating a new directory. + * + * @param string $uri + * @return void + */ + public function createDirectory($uri) { + + $this->createCollection($uri,array('{DAV:}collection'),array()); + + } + + /** * Use this method to create a new collection * * The {DAV:}resourcetype is specified using the resourceType array. |