fix non-absolute symbolic links

This commit is contained in:
Robin Appelman 2012-01-27 00:21:15 +01:00
parent 830cf87697
commit 2f4a289782

View file

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