aboutsummaryrefslogtreecommitdiffstats
path: root/mod/wall_attach.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-25 02:08:15 -0700
committerFriendika <info@friendika.com>2011-05-25 02:08:15 -0700
commit2a679b1164207ee983a26cb6d06fef10d4b81bb0 (patch)
tree063986ed6d18ab70aaa2483d5ec6104fe0cf5359 /mod/wall_attach.php
parentde482058b8cba64448e690b97b36e8e2877d6e17 (diff)
downloadvolse-hubzilla-2a679b1164207ee983a26cb6d06fef10d4b81bb0.tar.gz
volse-hubzilla-2a679b1164207ee983a26cb6d06fef10d4b81bb0.tar.bz2
volse-hubzilla-2a679b1164207ee983a26cb6d06fef10d4b81bb0.zip
file attachments
Diffstat (limited to 'mod/wall_attach.php')
-rw-r--r--mod/wall_attach.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/wall_attach.php b/mod/wall_attach.php
index b539171cf..f18fd10b7 100644
--- a/mod/wall_attach.php
+++ b/mod/wall_attach.php
@@ -64,11 +64,12 @@ function wall_attach_post(&$a) {
$mimetype = mime_content_type($src);
$hash = random_string();
$created = datetime_convert();
-dbg(1);
- $r = q("INSERT INTO `attach` ( `uid`, `hash`, `filetype`, `filesize`, `data`, `created`, `edited`, `allow_cid`, `allow_gid`,`deny_cid`, `deny_gid` )
- VALUES ( %d, '%s', '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s' ) ",
+
+ $r = q("INSERT INTO `attach` ( `uid`, `hash`, `filename`, `filetype`, `filesize`, `data`, `created`, `edited`, `allow_cid`, `allow_gid`,`deny_cid`, `deny_gid` )
+ VALUES ( %d, '%s', '%s', '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s' ) ",
intval($page_owner_uid),
dbesc($hash),
+ dbesc($filename),
dbesc($mimetype),
intval($filesize),
dbesc($filedata),