summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-06-04 18:07:14 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2013-06-04 18:07:14 -0400
commit8793acfb4e751cfdb464d259de45249cec5d6398 (patch)
tree303217b70707091f855a595dcb9e91b7507c6ac9 /apps/files_external
parent8be23efa730e99083bd6ac95f163f9007644db5a (diff)
downloadnextcloud-server-8793acfb4e751cfdb464d259de45249cec5d6398.tar.gz
nextcloud-server-8793acfb4e751cfdb464d259de45249cec5d6398.zip
substr storage id to prevent problems with storing the change id in appconfig
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/google.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/google.php b/apps/files_external/lib/google.php
index 678799545d7..18ea5fca16f 100644
--- a/apps/files_external/lib/google.php
+++ b/apps/files_external/lib/google.php
@@ -55,7 +55,7 @@ class Google extends \OC\Files\Storage\Common {
$this->service = new \Google_DriveService($client);
$this->root = isset($params['root']) ? $params['root'] : '';
$token = json_decode($params['token'], true);
- $this->id = 'google::'.$params['client_id'].$token['created'];
+ $this->id = 'google::'.substr($params['client_id'], 0, 30).$token['created'];
} else {
throw new \Exception('Creating \OC\Files\Storage\Google storage failed');
}