diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-01-02 11:47:02 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-01-02 11:47:02 +0100 |
commit | 29048bf4bd80e7312cfc4b46b7b56a252ecdd5fd (patch) | |
tree | 918a1c93079ff50533a11953c0017e51449f03b2 | |
parent | fb4c3bd9cebeafbae2538c35d1eaec70e55fe19f (diff) | |
parent | 4374d55e5e020a1f2673a18991be6f2560e9f2c3 (diff) | |
download | nextcloud-server-29048bf4bd80e7312cfc4b46b7b56a252ecdd5fd.tar.gz nextcloud-server-29048bf4bd80e7312cfc4b46b7b56a252ecdd5fd.zip |
Merge git://gitorious.org/owncloud/owncloud into oc_image
-rw-r--r-- | lib/filestorage/local.php | 4 | ||||
-rw-r--r-- | lib/filesystem.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/filestorage/local.php b/lib/filestorage/local.php index 02746fa6c6f..cfc27159786 100644 --- a/lib/filestorage/local.php +++ b/lib/filestorage/local.php @@ -50,10 +50,10 @@ class OC_Filestorage_Local extends OC_Filestorage{ } } public function is_readable($path){ - return true; + return is_readable($this->datadir.$path); } public function is_writeable($path){ - return true; + return is_writable($this->datadir.$path); } public function file_exists($path){ return file_exists($this->datadir.$path); diff --git a/lib/filesystem.php b/lib/filesystem.php index 9b3dde1ae07..1205a6aa51b 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -245,7 +245,7 @@ class OC_Filesystem{ return false; } $storage=self::getStorage($path); - return $storage->is_readable($path); + return $storage->is_readable(self::getInternalPath($path)); } static public function is_writeable($path){ if(substr($path,0,1)!=='/'){ @@ -255,7 +255,7 @@ class OC_Filesystem{ return false; } $storage=self::getStorage($path); - return $storage->is_writeable($path); + return $storage->is_writeable(self::getInternalPath($path)); } static public function file_exists($path){ if($path=='/'){ |