mirror of
https://github.com/nextcloud/server.git
synced 2026-02-24 02:11:51 -05:00
parent
b7b6770d35
commit
cfdf2b9976
1 changed files with 2 additions and 2 deletions
|
|
@ -167,7 +167,7 @@ class Encryption extends Wrapper {
|
|||
)
|
||||
));
|
||||
|
||||
return self::wrapSource($source, $mode, $context, 'ocencryption', $wrapper);
|
||||
return self::wrapSource($source, $context, 'ocencryption', $wrapper, $mode);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -181,7 +181,7 @@ class Encryption extends Wrapper {
|
|||
* @return resource
|
||||
* @throws \BadMethodCallException
|
||||
*/
|
||||
protected static function wrapSource($source, $mode, $context, $protocol, $class) {
|
||||
protected static function wrapSource($source, $context, $protocol, $class, $mode = 'r+') {
|
||||
try {
|
||||
stream_wrapper_register($protocol, $class);
|
||||
if (@rewinddir($source) === false) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue