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

This commit is contained in:
Bjoern Schiessle 2014-04-08 11:32:39 +02:00
parent a02fb3722b
commit 6d87dacad4

View file

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