fix non-absolute symbolic links
This commit is contained in:
parent
830cf87697
commit
2f4a289782
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class OC_Filestorage_Local extends OC_Filestorage{
|
||||||
public function filetype($path){
|
public function filetype($path){
|
||||||
$filetype=filetype($this->datadir.$path);
|
$filetype=filetype($this->datadir.$path);
|
||||||
if($filetype=='link'){
|
if($filetype=='link'){
|
||||||
$filetype=filetype(readlink($this->datadir.$path));
|
$filetype=filetype(realpath($this->datadir.$path));
|
||||||
}
|
}
|
||||||
return $filetype;
|
return $filetype;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue