fix uploading when ['dirtoken'] is not set
This commit is contained in:
parent
e55ed10b0d
commit
86342224da
|
@ -8,7 +8,7 @@ OCP\JSON::setContentTypeHeader('text/plain');
|
||||||
// If no token is sent along, rely on login only
|
// If no token is sent along, rely on login only
|
||||||
|
|
||||||
$l = OC_L10N::get('files');
|
$l = OC_L10N::get('files');
|
||||||
if (!$_POST['dirToken']) {
|
if (empty($_POST['dirToken'])) {
|
||||||
// The standard case, files are uploaded through logged in users :)
|
// The standard case, files are uploaded through logged in users :)
|
||||||
OCP\JSON::checkLoggedIn();
|
OCP\JSON::checkLoggedIn();
|
||||||
$dir = isset($_POST['dir']) ? $_POST['dir'] : "";
|
$dir = isset($_POST['dir']) ? $_POST['dir'] : "";
|
||||||
|
|
Loading…
Reference in New Issue