diff options
Diffstat (limited to 'mod/wall_attach.php')
-rw-r--r-- | mod/wall_attach.php | 7 |
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), |