]> source.dussan.org Git - nextcloud-server.git/commitdiff
substr storage id to prevent problems with storing the change id in appconfig
authorMichael Gapczynski <mtgap@owncloud.com>
Tue, 4 Jun 2013 22:07:14 +0000 (18:07 -0400)
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>
Sat, 3 Aug 2013 12:40:22 +0000 (15:40 +0300)
apps/files_external/lib/google.php

index 678799545d719d4112e2b5d194e01da5eaa19ea2..18ea5fca16fc6007c753f997bb061d138148965e 100644 (file)
@@ -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');
                }