mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 16:35:37 -05:00
fix fopen
This commit is contained in:
parent
74740fb71a
commit
38bb503ff6
1 changed files with 3 additions and 1 deletions
|
|
@ -366,9 +366,11 @@ class OC_Filesystem{
|
|||
case 'a':
|
||||
$hooks[]='write';
|
||||
break;
|
||||
default:
|
||||
OC_Log::write('core','invalid mode ('.$mode.') for '.$path,OC_Log::ERROR);
|
||||
}
|
||||
|
||||
return self::basicOperation('fopen',$path,$hooks);
|
||||
return self::basicOperation('fopen',$path,$hooks,$mode);
|
||||
}
|
||||
static public function toTmpFile($path){
|
||||
if(OC_FileProxy::runPreProxies('toTmpFile',$path) and self::canRead($path) and $storage=self::getStorage($path)){
|
||||
|
|
|
|||
Loading…
Reference in a new issue