@@ -127,7 +127,7 @@ public function begin($path, $user, $mode, array $header, array $accessList) {
127127 /* If useLegacyFileKey is not specified in header, auto-detect, to be safe */
128128 $ useLegacyFileKey = (($ header ['useLegacyFileKey ' ] ?? '' ) == 'false ' ? false : null );
129129
130- $ this ->fileKey = $ this ->keyManager ->getFileKey ($ this ->path , null , $ useLegacyFileKey , $ this ->session ->decryptAllModeActivated ());
130+ $ this ->fileKey = $ this ->keyManager ->getFileKey ($ this ->path , $ useLegacyFileKey , $ this ->session ->decryptAllModeActivated ());
131131
132132 // always use the version from the original file, also part files
133133 // need to have a correct version number if they get moved over to the
@@ -335,7 +335,7 @@ public function update($path, $uid, array $accessList) {
335335 return false ;
336336 }
337337
338- $ fileKey = $ this ->keyManager ->getFileKey ($ path , null , null );
338+ $ fileKey = $ this ->keyManager ->getFileKey ($ path , null );
339339
340340 if (!empty ($ fileKey )) {
341341 $ publicKeys = [];
@@ -438,7 +438,7 @@ public function getUnencryptedBlockSize($signed = false) {
438438 * @throws DecryptionFailedException
439439 */
440440 public function isReadable ($ path , $ uid ) {
441- $ fileKey = $ this ->keyManager ->getFileKey ($ path , $ uid , null );
441+ $ fileKey = $ this ->keyManager ->getFileKey ($ path , null );
442442 if (empty ($ fileKey )) {
443443 $ owner = $ this ->util ->getOwner ($ path );
444444 if ($ owner !== $ uid ) {
0 commit comments