]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix non-absolute symbolic links
authorRobin Appelman <icewind@owncloud.com>
Thu, 26 Jan 2012 23:21:15 +0000 (00:21 +0100)
committerRobin Appelman <icewind@owncloud.com>
Thu, 26 Jan 2012 23:21:15 +0000 (00:21 +0100)
lib/filestorage/local.php

index b8a0563c1347041ca9440a4b5e522cf90f1102c8..e846aa420e45c1574086790b86b8312a641fa921 100644 (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;
        }