diff options
author | Habeas Codice <habeascodice@federated.social> | 2014-11-18 11:43:00 -0800 |
---|---|---|
committer | Habeas Codice <habeascodice@federated.social> | 2014-11-18 11:43:00 -0800 |
commit | 7d0659bb2ba3e12f909b63d566e338333f5aaebd (patch) | |
tree | d5713ae0496816aba7dd0cc2b72d25a212d5121f /include | |
parent | a7d58277a206c048b83a4802c983594f97cf9d6a (diff) | |
download | volse-hubzilla-7d0659bb2ba3e12f909b63d566e338333f5aaebd.tar.gz volse-hubzilla-7d0659bb2ba3e12f909b63d566e338333f5aaebd.tar.bz2 volse-hubzilla-7d0659bb2ba3e12f909b63d566e338333f5aaebd.zip |
postgres fixes
Diffstat (limited to 'include')
-rw-r--r-- | include/attach.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/attach.php b/include/attach.php index 87d618afa..8541c142c 100644 --- a/include/attach.php +++ b/include/attach.php @@ -404,7 +404,7 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) { dbesc($filename), dbesc($mimetype), intval($filesize), - dbesc(@file_get_contents($src)), + dbescbin(@file_get_contents($src)), dbesc($created), intval($existing_id), intval($channel_id) @@ -421,7 +421,7 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) { dbesc($mimetype), intval($filesize), intval($x[0]['revision'] + 1), - dbesc(@file_get_contents($src)), + dbescbin(@file_get_contents($src)), dbesc($created), dbesc($created), dbesc($x[0]['allow_cid']), @@ -455,7 +455,7 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) { dbesc($mimetype), intval($filesize), intval(0), - dbesc(@file_get_contents($src)), + dbescbin(@file_get_contents($src)), dbesc($created), dbesc($created), dbesc(($arr && array_key_exists('allow_cid',$arr)) ? $arr['allow_cid'] : '<' . $channel['channel_hash'] . '>'), |