mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
add more valid fopen modes
This commit is contained in:
parent
ff0a542e48
commit
857535403c
1 changed files with 8 additions and 0 deletions
|
|
@ -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 a new issue