aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-04-20 08:42:58 +0000
committerMario <mario@mariovavti.com>2021-04-20 08:42:58 +0000
commit31abcac4b4dc9e21588deb84b93bc41d761ed630 (patch)
tree4d6f2637a169ae45644c450f068f7b92e9b12a05 /include
parenteaf9003ca27c52c571f940e49fcfba6e1c8fe629 (diff)
downloadvolse-hubzilla-31abcac4b4dc9e21588deb84b93bc41d761ed630.tar.gz
volse-hubzilla-31abcac4b4dc9e21588deb84b93bc41d761ed630.tar.bz2
volse-hubzilla-31abcac4b4dc9e21588deb84b93bc41d761ed630.zip
if we use dbescbin on save we should use dbunescbin when retrieving (at least that is true for postgres)
Diffstat (limited to 'include')
-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'])))
];
}
}