add more valid fopen modes
This commit is contained in:
parent
ff0a542e48
commit
857535403c
|
@ -255,18 +255,26 @@ class OC_FilesystemView {
|
||||||
$hooks=array();
|
$hooks=array();
|
||||||
switch($mode){
|
switch($mode){
|
||||||
case 'r':
|
case 'r':
|
||||||
|
case 'rb':
|
||||||
$hooks[]='read';
|
$hooks[]='read';
|
||||||
break;
|
break;
|
||||||
case 'r+':
|
case 'r+':
|
||||||
|
case 'rb+':
|
||||||
case 'w+':
|
case 'w+':
|
||||||
|
case 'wb+':
|
||||||
case 'x+':
|
case 'x+':
|
||||||
|
case 'xb+':
|
||||||
case 'a+':
|
case 'a+':
|
||||||
|
case 'ab+':
|
||||||
$hooks[]='read';
|
$hooks[]='read';
|
||||||
$hooks[]='write';
|
$hooks[]='write';
|
||||||
break;
|
break;
|
||||||
case 'w':
|
case 'w':
|
||||||
|
case 'wb':
|
||||||
case 'x':
|
case 'x':
|
||||||
|
case 'xb':
|
||||||
case 'a':
|
case 'a':
|
||||||
|
case 'ab':
|
||||||
$hooks[]='write';
|
$hooks[]='write';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue