aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-08-14 08:17:47 +0000
committerMario <mario@mariovavti.com>2023-08-27 19:57:01 +0200
commit3342ea6891a881541e9c3648d259b3ff2036c9f1 (patch)
tree52cd1516a44767ef8abef525391d47da19061145 /include/attach.php
parent8c3d5fd295081f312031a3e6158389019d15f8ae (diff)
downloadvolse-hubzilla-3342ea6891a881541e9c3648d259b3ff2036c9f1.tar.gz
volse-hubzilla-3342ea6891a881541e9c3648d259b3ff2036c9f1.tar.bz2
volse-hubzilla-3342ea6891a881541e9c3648d259b3ff2036c9f1.zip
fix unable to create folders with name 0
(cherry picked from commit c4af4e3297f09aa0c6f8ed8e21d6f54729ebfc4d)
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/attach.php b/include/attach.php
index ead5a8e06..3060295b9 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -1180,7 +1180,7 @@ function attach_mkdir($channel, $observer_hash, $arr = null) {
return $ret;
}
- if(! $arr['filename']) {
+ if(isset($arr['filename']) && !strlen($arr['filename'])) {
$ret['message'] = t('Empty pathname');
return $ret;
}