aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-04-20 08:42:58 +0000
committerMario <mario@mariovavti.com>2021-04-20 10:52:18 +0200
commit3f0e687558a2b33756c35074430e39089b994574 (patch)
tree893239f20ea9068f47ee77f5e152964c4f735e22
parentd7f04ff6eee4275569939255fdadfe6448c478da (diff)
downloadvolse-hubzilla-3f0e687558a2b33756c35074430e39089b994574.tar.gz
volse-hubzilla-3f0e687558a2b33756c35074430e39089b994574.tar.bz2
volse-hubzilla-3f0e687558a2b33756c35074430e39089b994574.zip
if we use dbescbin on save we should use dbunescbin when retrieving (at least that is true for postgres)
(cherry picked from commit 31abcac4b4dc9e21588deb84b93bc41d761ed630)
-rw-r--r--include/channel.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/channel.php b/include/channel.php
index ecb7c24f7..9347ba73b 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -922,7 +922,7 @@ function identity_basic_export($channel_id, $sections = null, $zap_compat = fals
$ret['photo'] = [
'type' => $r[0]['mimetype'],
'data' => (($r[0]['os_storage'])
- ? base64url_encode(file_get_contents($r[0]['content'])) : base64url_encode(dbunescbin($r[0]['content'])))
+ ? base64url_encode(file_get_contents(dbunescbin($r[0]['content']))) : base64url_encode(dbunescbin($r[0]['content'])))
];
}
}