summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-07-01 15:39:11 +0200
committerRobin Appelman <icewind@owncloud.com>2013-07-01 15:39:11 +0200
commit86342224da06aafe93af883b2430533702caba70 (patch)
treee1e6db10eab7527399124ba63b77ed9719503a9a
parente55ed10b0dc2265d5ee4552c493c0ad619675a9f (diff)
downloadnextcloud-server-86342224da06aafe93af883b2430533702caba70.tar.gz
nextcloud-server-86342224da06aafe93af883b2430533702caba70.zip
fix uploading when ['dirtoken'] is not set
-rw-r--r--apps/files/ajax/upload.php2
1 files changed, 1 insertions, 1 deletions
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'] : "";