aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2014-11-19 08:55:18 +1100
committerRedMatrix <info@friendica.com>2014-11-19 08:55:18 +1100
commitf137f50e3b8a17f33b978bd13b72e64af249bab3 (patch)
tree9e3fc659dda7a83640087b4ca5c216190c99f012 /include
parentfd10b49fbfa39ad5992303edfbbc0565a0a02af2 (diff)
parent6cc906fd1d7226e4db2f546551c14fe04ea815e7 (diff)
downloadvolse-hubzilla-f137f50e3b8a17f33b978bd13b72e64af249bab3.tar.gz
volse-hubzilla-f137f50e3b8a17f33b978bd13b72e64af249bab3.tar.bz2
volse-hubzilla-f137f50e3b8a17f33b978bd13b72e64af249bab3.zip
Merge pull request #701 from habeascodice/master
minor postgres fixes
Diffstat (limited to 'include')
-rw-r--r--include/attach.php6
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'] . '>'),