diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-04-08 11:32:39 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-04-23 12:54:24 +0200 |
commit | 6d87dacad4e7b0d5ef92b92d892a457bdcbd207e (patch) | |
tree | 99ff86c31c43117cce07fd75b284dab1b6947ff0 /apps | |
parent | a02fb3722bae6655ffdd5b0e6c522331612c255b (diff) | |
download | nextcloud-server-6d87dacad4e7b0d5ef92b92d892a457bdcbd207e.tar.gz nextcloud-server-6d87dacad4e7b0d5ef92b92d892a457bdcbd207e.zip |
fix getMimeType call, we always need to check the source path
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index d09a4a22564..3fa2540b604 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -452,9 +452,6 @@ class Shared extends \OC\Files\Storage\Common { } public function getMimeType($path) { - if ($path == '' || $path == '/') { - return 'httpd/unix-directory'; - } if ($source = $this->getSourcePath($path)) { list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); return $storage->getMimeType($internalPath); |