]> 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)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 1 Jul 2013 17:41:47 +0000 (19:41 +0200)
apps/files/ajax/upload.php

index 27ffe990cc1c828379209608b362396dcbc7d3f2..bd92b6c56f079bf273288eba8d55f57d79c618ba 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'] : "";