add more valid fopen modes
This commit is contained in:
parent
ff0a542e48
commit
857535403c
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue