From 31abcac4b4dc9e21588deb84b93bc41d761ed630 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 20 Apr 2021 08:42:58 +0000 Subject: if we use dbescbin on save we should use dbunescbin when retrieving (at least that is true for postgres) --- include/channel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/channel.php') 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']))) ]; } } -- cgit v1.2.3