summaryrefslogtreecommitdiffstats
path: root/lib/filesystemview.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-02-26 15:32:58 +0100
committerRobin Appelman <icewind@owncloud.com>2012-02-26 15:32:58 +0100
commit857535403c7cdd489ec8f658b973c60ebb27e824 (patch)
tree2bd02c3743d357ebb41f12b49e95c461b9c258e0 /lib/filesystemview.php
parentff0a542e48aa5fe3adf557f17b0a9383a79bf586 (diff)
downloadnextcloud-server-857535403c7cdd489ec8f658b973c60ebb27e824.tar.gz
nextcloud-server-857535403c7cdd489ec8f658b973c60ebb27e824.zip
add more valid fopen modes
Diffstat (limited to 'lib/filesystemview.php')
-rw-r--r--lib/filesystemview.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/filesystemview.php b/lib/filesystemview.php
index ba1490dd276..0c530677f54 100644
--- a/lib/filesystemview.php
+++ b/lib/filesystemview.php
@@ -255,18 +255,26 @@ class OC_FilesystemView {
$hooks=array();
switch($mode){
case 'r':
+ case 'rb':
$hooks[]='read';
break;
case 'r+':
+ case 'rb+':
case 'w+':
+ case 'wb+':
case 'x+':
+ case 'xb+':
case 'a+':
+ case 'ab+':
$hooks[]='read';
$hooks[]='write';
break;
case 'w':
+ case 'wb':
case 'x':
+ case 'xb':
case 'a':
+ case 'ab':
$hooks[]='write';
break;
default: