diff options
Diffstat (limited to 'lib/private/files/storage/local.php')
-rw-r--r-- | lib/private/files/storage/local.php | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/private/files/storage/local.php b/lib/private/files/storage/local.php index 63570d70cff..a8b420e978a 100644 --- a/lib/private/files/storage/local.php +++ b/lib/private/files/storage/local.php @@ -208,22 +208,7 @@ if (\OC_Util::runningOnWindows()) { } public function fopen($path, $mode) { - if ($return = fopen($this->datadir . $path, $mode)) { - switch ($mode) { - case 'r': - break; - case 'r+': - case 'w+': - case 'x+': - case 'a+': - break; - case 'w': - case 'x': - case 'a': - break; - } - } - return $return; + return fopen($this->datadir . $path, $mode); } public function hash($type, $path, $raw = false) { |