fix uploading when ['dirtoken'] is not set

This commit is contained in:
Robin Appelman 2013-07-01 15:39:11 +02:00
parent e55ed10b0d
commit 86342224da
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ OCP\JSON::setContentTypeHeader('text/plain');
// If no token is sent along, rely on login only
$l = OC_L10N::get('files');
if (!$_POST['dirToken']) {
if (empty($_POST['dirToken'])) {
// The standard case, files are uploaded through logged in users :)
OCP\JSON::checkLoggedIn();
$dir = isset($_POST['dir']) ? $_POST['dir'] : "";