Browse Source

fix getMimeType call, we always need to check the source path

remotes/origin/ldap_group_count
Bjoern Schiessle 12 years ago
parent
commit
6d87dacad4
  1. 3
      apps/files_sharing/lib/sharedstorage.php

3
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);

Loading…
Cancel
Save