[Pkg-owncloud-commits] [owncloud] 70/118: Fix root request path for Dropbox
David Prévot
taffit at moszumanska.debian.org
Fri Mar 27 22:13:14 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 02f00c9980c1e61343c8a3ea1d63284762c4666f
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Tue Mar 17 10:56:24 2015 +0100
Fix root request path for Dropbox
---
apps/files_external/lib/dropbox.php | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/apps/files_external/lib/dropbox.php b/apps/files_external/lib/dropbox.php
index cc1e628..30ca431 100644
--- a/apps/files_external/lib/dropbox.php
+++ b/apps/files_external/lib/dropbox.php
@@ -100,7 +100,12 @@ class Dropbox extends \OC\Files\Storage\Common {
return $contents;
} else {
try {
- $response = $this->dropbox->getMetaData($path, 'false');
+ $requestPath = $path;
+ if ($path === '.') {
+ $requestPath = '';
+ }
+
+ $response = $this->dropbox->getMetaData($requestPath, 'false');
if (!isset($response['is_deleted']) || !$response['is_deleted']) {
$this->metaData[$path] = $response;
return $response;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list