]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix uploading when ['dirtoken'] is not set
authorRobin Appelman <icewind@owncloud.com>
Mon, 1 Jul 2013 13:39:11 +0000 (15:39 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 1 Jul 2013 13:39:11 +0000 (15:39 +0200)
apps/files/ajax/upload.php

index 6fdab0e9a9f64dbc7479d8ad47cc94cf86076438..8433716dec1e545ae228cb827e555da16c3b88ea 100644 (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'] : "";