From 2f4a289782ae425c8984e982167ae8e523db96eb Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 27 Jan 2012 00:21:15 +0100 Subject: [PATCH] fix non-absolute symbolic links --- lib/filestorage/local.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filestorage/local.php b/lib/filestorage/local.php index b8a0563c134..e846aa420e4 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; } -- 2.39.5