aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authorFlorian Steinel <root@hub.toppoint.de>2016-10-22 08:07:27 +0200
committerFlorian Steinel <root@hub.toppoint.de>2016-10-22 08:07:27 +0200
commitf84530c285cf8bbb1f820614a20e698a388111c0 (patch)
tree93099ec472e7fa5ca7b0f05692b38a64c27ac27e /include/attach.php
parentca97130a296bcf0d17b63d07f328c841731b3e58 (diff)
downloadvolse-hubzilla-f84530c285cf8bbb1f820614a20e698a388111c0.tar.gz
volse-hubzilla-f84530c285cf8bbb1f820614a20e698a388111c0.tar.bz2
volse-hubzilla-f84530c285cf8bbb1f820614a20e698a388111c0.zip
attach_mkdir use $os_path and $display_path initilized to an empty string
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php
index 0deda3205..e2e214ce3 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -1043,6 +1043,10 @@ function attach_mkdir($channel, $observer_hash, $arr = null) {
$created = datetime_convert();
+ // not yet used
+ $os_path = '';
+ $display_path = '';
+
$r = q("INSERT INTO attach ( aid, uid, hash, creator, filename, filetype, filesize, revision, folder, os_storage, is_dir, content, created, edited, os_path, display_path, allow_cid, allow_gid, deny_cid, deny_gid )
VALUES ( %d, %d, '%s', '%s', '%s', '%s', %d, %d, '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' ) ",
intval($channel['channel_account_id']),
@@ -1059,8 +1063,8 @@ function attach_mkdir($channel, $observer_hash, $arr = null) {
dbesc($path),
dbesc($created),
dbesc($created),
- dbesc($path),
- dbesc($path),
+ dbesc($os_path),
+ dbesc($display_path),
dbesc(($arr && array_key_exists('allow_cid',$arr)) ? $arr['allow_cid'] : $channel['channel_allow_cid']),
dbesc(($arr && array_key_exists('allow_gid',$arr)) ? $arr['allow_gid'] : $channel['channel_allow_gid']),
dbesc(($arr && array_key_exists('deny_cid',$arr)) ? $arr['deny_cid'] : $channel['channel_deny_cid']),