aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-04 19:21:09 -0800
committerfriendica <info@friendica.com>2013-11-04 19:21:09 -0800
commitf89e7b2bd549474439e684c052623af7e2e8d27d (patch)
tree524080d313d0e2b9f69c7c7b3d7fec3c44d5ee3e /include/attach.php
parent1c5e2b86457144a6feb7b672d522939e9a2db0f8 (diff)
downloadvolse-hubzilla-f89e7b2bd549474439e684c052623af7e2e8d27d.tar.gz
volse-hubzilla-f89e7b2bd549474439e684c052623af7e2e8d27d.tar.bz2
volse-hubzilla-f89e7b2bd549474439e684c052623af7e2e8d27d.zip
make the storage permissions tweakable for hosted environments where they may require tweaking.
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php
index 2f77460a4..0c748cba6 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -532,7 +532,7 @@ function attach_mkdir($channel,$observer_hash,$arr = null) {
$basepath = 'store/' . $channel['channel_address'];
if(! is_dir($basepath))
- @mkdir($basepath,0700,true);
+ @mkdir($basepath,STORAGE_DEFAULT_PERMISSIONS,true);
if(! perm_is_allowed($channel_id, get_observer_hash(),'write_storage')) {
@@ -619,7 +619,7 @@ function attach_mkdir($channel,$observer_hash,$arr = null) {
);
if($r) {
- if(mkdir($path,0700)) {
+ if(mkdir($path,STORAGE_DEFAULT_PERMISSIONS)) {
$ret['success'] = true;
$ret['data'] = $arr;
}