summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2014-08-19 10:13:38 +0200
committerBjörn Schießle <schiessle@owncloud.com>2014-08-19 10:13:38 +0200
commit312ed5330781cff8bcd420077deeb96e5d39f245 (patch)
tree09ea2f93f65c87638bf1646879ef7cace2710349 /apps
parent1c23f54d42a45de37edd85c7b92547f466e6982d (diff)
parent043cd1d02bb5340b8231a1d59add9ffce9bd3120 (diff)
downloadnextcloud-server-312ed5330781cff8bcd420077deeb96e5d39f245.tar.gz
nextcloud-server-312ed5330781cff8bcd420077deeb96e5d39f245.zip
Merge pull request #10494 from owncloud/fix_upload_to_public_folder
set incognitoMode to true during upload to a public folder
Diffstat (limited to 'apps')
-rw-r--r--apps/files/ajax/upload.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php
index f9fcfaf13c5..b737d5f8710 100644
--- a/apps/files/ajax/upload.php
+++ b/apps/files/ajax/upload.php
@@ -24,6 +24,8 @@ if (empty($_POST['dirToken'])) {
// and the upload/file transfer code needs to be refactored into a utility method
// that could be used there
+ \OC_User::setIncognitoMode(true);
+
// return only read permissions for public upload
$allowedPermissions = OCP\PERMISSION_READ;
$publicDirectory = !empty($_POST['subdir']) ? $_POST['subdir'] : '/';
@@ -175,7 +177,7 @@ if (strpos($dir, '..') === false) {
} catch(Exception $ex) {
$error = $ex->getMessage();
}
-
+
} else {
// file already exists
$meta = \OC\Files\Filesystem::getFileInfo($target);