From: Robin Appelman Date: Mon, 1 Jul 2013 13:39:11 +0000 (+0200) Subject: fix uploading when ['dirtoken'] is not set X-Git-Tag: v6.0.0alpha2~546^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=86342224da06aafe93af883b2430533702caba70;p=nextcloud-server.git fix uploading when ['dirtoken'] is not set --- diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php index 6fdab0e9a9f..8433716dec1 100644 --- a/apps/files/ajax/upload.php +++ b/apps/files/ajax/upload.php @@ -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'] : "";