diff --git a/lib/filestorage/local.php b/lib/filestorage/local.php index b8a0563c13..e846aa420e 100644 --- a/lib/filestorage/local.php +++ b/lib/filestorage/local.php @@ -38,7 +38,7 @@ class OC_Filestorage_Local extends OC_Filestorage{ public function filetype($path){ $filetype=filetype($this->datadir.$path); if($filetype=='link'){ - $filetype=filetype(readlink($this->datadir.$path)); + $filetype=filetype(realpath($this->datadir.$path)); } return $filetype; }