add more valid fopen modes

remotes/origin/stable4
Robin Appelman 13 years ago
parent ff0a542e48
commit 857535403c
  1. 8
      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:

Loading…
Cancel
Save