Merge pull request #7867 from owncloud/upload-dontclosesessionforencryption

Fix public upload to not close session when encryption is on
This commit is contained in:
Thomas Müller 2014-03-25 12:43:26 +01:00
commit 36c9d91f86
1 changed files with 4 additions and 1 deletions

View File

@ -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)