From: Michael Gapczynski Date: Tue, 4 Jun 2013 22:07:14 +0000 (-0400) Subject: substr storage id to prevent problems with storing the change id in appconfig X-Git-Tag: v5.0.11~41^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5c22a635b75497b5fb211a5005649dc93139591c;p=nextcloud-server.git substr storage id to prevent problems with storing the change id in appconfig --- 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'); }