Merge pull request #7867 from owncloud/upload-dontclosesessionforencryption
Fix public upload to not close session when encryption is on
This commit is contained in:
commit
36c9d91f86
1 changed files with 4 additions and 1 deletions
|
@ -58,7 +58,10 @@ if (empty($_POST['dirToken'])) {
|
|||
|
||||
|
||||
OCP\JSON::callCheck();
|
||||
\OC::$session->close();
|
||||
if (!\OCP\App::isEnabled('files_encryption')) {
|
||||
// encryption app need to create keys later, so can't close too early
|
||||
\OC::$session->close();
|
||||
}
|
||||
|
||||
|
||||
// get array with current storage stats (e.g. max file size)
|
||||
|
|
Loading…
Reference in a new issue