diff options
author | Adam Williamson <awilliam@redhat.com> | 2014-11-10 12:00:27 -0800 |
---|---|---|
committer | Adam Williamson <awilliam@redhat.com> | 2014-11-10 12:00:27 -0800 |
commit | 3234c91557a5737e9e14097efa31e723b3ca390b (patch) | |
tree | c380ae0e40348cb07e85ef43cd46f80fb5590e24 /apps | |
parent | 2023878d537374b47494eb8ce44d3757b3692626 (diff) | |
download | nextcloud-server-3234c91557a5737e9e14097efa31e723b3ca390b.tar.gz nextcloud-server-3234c91557a5737e9e14097efa31e723b3ca390b.zip |
google: drop duplicate path trim from opendir()
opendir() trims the path passed then calls getDriveFile() -
which immediately does the same trim operation. This breaks
opendir() on the root directory, which causes the failure of
the testStat() test when it checks the ctime of the root dir.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/google.php | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/files_external/lib/google.php b/apps/files_external/lib/google.php index 62b0f182e98..d3a665cd53a 100644 --- a/apps/files_external/lib/google.php +++ b/apps/files_external/lib/google.php @@ -228,8 +228,6 @@ class Google extends \OC\Files\Storage\Common { } public function opendir($path) { - // Remove leading and trailing slashes - $path = trim($path, '/'); $folder = $this->getDriveFile($path); if ($folder) { $files = array(); |