aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-08-14 08:17:47 +0000
committerMario <mario@mariovavti.com>2023-08-14 08:17:47 +0000
commitc4af4e3297f09aa0c6f8ed8e21d6f54729ebfc4d (patch)
tree1d29b1a615b031fbca32588b5817aa512dde38f2 /Zotlabs
parent1acfc05e2db2ba5556b8d8596dcf7b3b99f75f6b (diff)
downloadvolse-hubzilla-c4af4e3297f09aa0c6f8ed8e21d6f54729ebfc4d.tar.gz
volse-hubzilla-c4af4e3297f09aa0c6f8ed8e21d6f54729ebfc4d.tar.bz2
volse-hubzilla-c4af4e3297f09aa0c6f8ed8e21d6f54729ebfc4d.zip
fix unable to create folders with name 0
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/File_upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/File_upload.php b/Zotlabs/Module/File_upload.php
index 39a30cb1a..8956ce16f 100644
--- a/Zotlabs/Module/File_upload.php
+++ b/Zotlabs/Module/File_upload.php
@@ -35,7 +35,7 @@ class File_upload extends \Zotlabs\Web\Controller {
$_REQUEST['deny_cid'] = ((isset($_REQUEST['contact_deny'])) ? perms2str($_REQUEST['contact_deny']) : '');
$_REQUEST['deny_gid'] = ((isset($_REQUEST['group_deny'])) ? perms2str($_REQUEST['group_deny']) : '');
- if(isset($_REQUEST['filename']) && $_REQUEST['filename']) {
+ if(isset($_REQUEST['filename']) && strlen($_REQUEST['filename'])) {
$r = attach_mkdir($channel, get_observer_hash(), $_REQUEST);
if($r['success']) {
$hash = $r['data']['hash'];