mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
fix getMimeType call, we always need to check the source path
This commit is contained in:
parent
a02fb3722b
commit
6d87dacad4
1 changed files with 0 additions and 3 deletions
|
|
@ -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…
Reference in a new issue