diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-05-24 14:45:29 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-05-24 14:45:29 +0200 |
commit | 648fc8d916022dd0538c02fb5f46188e2f60da92 (patch) | |
tree | 443f2663f5a6566b35b84ba7af7ba47f307ce3f3 /apps/files_external/lib | |
parent | 83aa28ed1d0e46e2b12bae87ea2f7e0ff5168406 (diff) | |
download | nextcloud-server-648fc8d916022dd0538c02fb5f46188e2f60da92.tar.gz nextcloud-server-648fc8d916022dd0538c02fb5f46188e2f60da92.zip |
skip google map files (#24807)
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/Google.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/files_external/lib/Lib/Storage/Google.php b/apps/files_external/lib/Lib/Storage/Google.php index 13e89299c22..9e5409e226e 100644 --- a/apps/files_external/lib/Lib/Storage/Google.php +++ b/apps/files_external/lib/Lib/Storage/Google.php @@ -57,6 +57,7 @@ class Google extends \OC\Files\Storage\Common { const SPREADSHEET = 'application/vnd.google-apps.spreadsheet'; const DRAWING = 'application/vnd.google-apps.drawing'; const PRESENTATION = 'application/vnd.google-apps.presentation'; + const MAP = 'application/vnd.google-apps.map'; public function __construct($params) { if (isset($params['configured']) && $params['configured'] === 'true' @@ -267,10 +268,12 @@ class Google extends \OC\Files\Storage\Common { $name = $child->getTitle(); // Check if this is a Google Doc i.e. no extension in name $extension = $child->getFileExtension(); - if (empty($extension) - && $child->getMimeType() !== self::FOLDER - ) { - $name .= '.'.$this->getGoogleDocExtension($child->getMimeType()); + if (empty($extension)) { + if ($child->getMimeType() === self::MAP) { + continue; // No method known to transfer map files, ignore it + } else if ($child->getMimeType() !== self::FOLDER) { + $name .= '.'.$this->getGoogleDocExtension($child->getMimeType()); + } } if ($path === '') { $filepath = $name; |