diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-03-31 15:12:35 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-03-31 15:12:35 +0200 |
commit | 53f67fc65ded57fe77b7c1ac345abd4b93b8434a (patch) | |
tree | 192d545d4c29b04ce61b5603d62a845de7466ac4 /apps | |
parent | b216b3fad0517b706457f74597b1ec7a7772a2b3 (diff) | |
download | nextcloud-server-53f67fc65ded57fe77b7c1ac345abd4b93b8434a.tar.gz nextcloud-server-53f67fc65ded57fe77b7c1ac345abd4b93b8434a.zip |
Revert "Properly quote file names in listFiles query for GDrive"
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/google.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/google.php b/apps/files_external/lib/google.php index b9d3666f956..291f9364ddd 100644 --- a/apps/files_external/lib/google.php +++ b/apps/files_external/lib/google.php @@ -113,7 +113,7 @@ class Google extends \OC\Files\Storage\Common { if (isset($this->driveFiles[$path])) { $parentId = $this->driveFiles[$path]->getId(); } else { - $q = "title='" . rawurlencode($name) . "' and '" . rawurlencode($parentId) . "' in parents and trashed = false"; + $q = "title='".$name."' and '".$parentId."' in parents and trashed = false"; $result = $this->service->files->listFiles(array('q' => $q))->getItems(); if (!empty($result)) { // Google Drive allows files with the same name, ownCloud doesn't @@ -257,7 +257,7 @@ class Google extends \OC\Files\Storage\Common { if ($pageToken !== true) { $params['pageToken'] = $pageToken; } - $params['q'] = "'" . rawurlencode($folder->getId()) . "' in parents and trashed = false"; + $params['q'] = "'".$folder->getId()."' in parents and trashed = false"; $children = $this->service->files->listFiles($params); foreach ($children->getItems() as $child) { $name = $child->getTitle(); |