Fix public upload to not close session when encryption is on

The encryption app needs to create keys when uploading files, so the
session needs to be kept open in such case.
This commit is contained in:
Vincent Petry 2014-03-24 17:34:37 +01:00
parent d87001a093
commit e72b2e6e3b

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)