diff options
author | zotlabs <mike@macgirvin.com> | 2018-05-08 23:01:24 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-05-08 23:01:24 -0700 |
commit | cab22f228ac3dd78af3e2d695f9cbdc8f32a8f56 (patch) | |
tree | 5c2b121d5d355ce5d2073e220a59c93c94838f35 /Zotlabs | |
parent | 0545baaf56efa6353b728b46e25e64f1a058bb5f (diff) | |
download | volse-hubzilla-cab22f228ac3dd78af3e2d695f9cbdc8f32a8f56.tar.gz volse-hubzilla-cab22f228ac3dd78af3e2d695f9cbdc8f32a8f56.tar.bz2 volse-hubzilla-cab22f228ac3dd78af3e2d695f9cbdc8f32a8f56.zip |
hide dotfiles by default in /cloud - the web interface (they are still accessible but hidden). Change this behaviour with pconfig system.show_dot_files
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Storage/Directory.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zotlabs/Storage/Directory.php b/Zotlabs/Storage/Directory.php index 7068ee15a..b30d45b0e 100644 --- a/Zotlabs/Storage/Directory.php +++ b/Zotlabs/Storage/Directory.php @@ -719,6 +719,8 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota, DAV\IMo ); foreach ($r as $rr) { + if((strpos($rr['filename'],'.') === 0) && (! get_pconfig($channel_id,'system','show_dot_files'))) + continue; // @FIXME I don't think we use revisions currently in attach structures. // In case we see any in the wild provide a unique filename. This |