aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/lib/DAV/Browser
diff options
context:
space:
mode:
authorhubzilla <git@macgirvin.com>2016-07-24 23:13:05 +1000
committerGitHub <noreply@github.com>2016-07-24 23:13:05 +1000
commiteb03877aa480c6b0ca4eb6f54131fb2880d62ab0 (patch)
tree698fa719d5f541a5d467796da8cf866f9ca3d138 /vendor/sabre/dav/lib/DAV/Browser
parent4ffc4ee70aa38c24cee2a7ae0b35c9203515acef (diff)
parent4c4d185937687a2a806a8d2b144eaf2dff17acb5 (diff)
downloadvolse-hubzilla-eb03877aa480c6b0ca4eb6f54131fb2880d62ab0.tar.gz
volse-hubzilla-eb03877aa480c6b0ca4eb6f54131fb2880d62ab0.tar.bz2
volse-hubzilla-eb03877aa480c6b0ca4eb6f54131fb2880d62ab0.zip
Merge pull request #458 from anaqreon/dragdropupload
Drag-and-drop file upload for cloud files
Diffstat (limited to 'vendor/sabre/dav/lib/DAV/Browser')
-rw-r--r--vendor/sabre/dav/lib/DAV/Browser/Plugin.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/sabre/dav/lib/DAV/Browser/Plugin.php b/vendor/sabre/dav/lib/DAV/Browser/Plugin.php
index 49359a045..4959193ea 100644
--- a/vendor/sabre/dav/lib/DAV/Browser/Plugin.php
+++ b/vendor/sabre/dav/lib/DAV/Browser/Plugin.php
@@ -163,7 +163,7 @@ class Plugin extends DAV\ServerPlugin {
* @return bool
*/
function httpPOST(RequestInterface $request, ResponseInterface $response) {
-
+
$contentType = $request->getHeader('Content-Type');
list($contentType) = explode(';', $contentType);
if ($contentType !== 'application/x-www-form-urlencoded' &&
@@ -179,7 +179,7 @@ class Plugin extends DAV\ServerPlugin {
if ($this->server->emit('onBrowserPostAction', [$uri, $postVars['sabreAction'], $postVars])) {
- switch ($postVars['sabreAction']) {
+ switch ($postVars['sabreAction']) {
case 'mkcol' :
if (isset($postVars['name']) && trim($postVars['name'])) {
@@ -221,7 +221,7 @@ class Plugin extends DAV\ServerPlugin {
if ($_FILES) $file = current($_FILES);
else break;
-
+
list(, $newName) = URLUtil::splitPath(trim($file['name']));
if (isset($postVars['name']) && trim($postVars['name']))
$newName = trim($postVars['name']);