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
|
@ -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 New Issue