summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-10-14 17:28:23 +0200
committerVincent Petry <pvince81@owncloud.com>2013-10-14 17:28:53 +0200
commit09b084dfedfc0e07acdf64a11d9350b70dfc15b1 (patch)
tree5d7473145e1d7cde1ade20388ebdcccd2d0adef8 /apps/files/ajax
parentde920736c5f7e156e555e25ea7168fcae170868d (diff)
downloadnextcloud-server-09b084dfedfc0e07acdf64a11d9350b70dfc15b1.tar.gz
nextcloud-server-09b084dfedfc0e07acdf64a11d9350b70dfc15b1.zip
Fixed file permissions after public upload
Fixes #5328
Diffstat (limited to 'apps/files/ajax')
-rw-r--r--apps/files/ajax/upload.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php
index 45fb17de94a..2c1be428e84 100644
--- a/apps/files/ajax/upload.php
+++ b/apps/files/ajax/upload.php
@@ -130,7 +130,7 @@ if (strpos($dir, '..') === false) {
'originalname' => $files['tmp_name'][$i],
'uploadMaxFilesize' => $maxUploadFileSize,
'maxHumanFilesize' => $maxHumanFileSize,
- 'permissions' => $meta['permissions'],
+ 'permissions' => $meta['permissions'] & OCP\PERMISSION_READ
);
}
@@ -156,7 +156,7 @@ if (strpos($dir, '..') === false) {
'originalname' => $files['tmp_name'][$i],
'uploadMaxFilesize' => $maxUploadFileSize,
'maxHumanFilesize' => $maxHumanFileSize,
- 'permissions' => $meta['permissions'],
+ 'permissions' => $meta['permissions'] & OCP\PERMISSION_READ
);
}
}