From 9f450a8132123b1e756069bea8d5296334eb4d78 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 25 Jun 2014 15:43:20 +0000 Subject: [PATCH] * PostgreSQL/Addressbook: fixed not displayed pictures by backporting ADORecordSet_postgres64::_decode() from ADOdb 5.19 --- phpgwapi/inc/adodb/drivers/adodb-postgres64.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/adodb/drivers/adodb-postgres64.inc.php b/phpgwapi/inc/adodb/drivers/adodb-postgres64.inc.php index 51f5fa257b..cff3bbc10a 100644 --- a/phpgwapi/inc/adodb/drivers/adodb-postgres64.inc.php +++ b/phpgwapi/inc/adodb/drivers/adodb-postgres64.inc.php @@ -924,8 +924,8 @@ class ADORecordSet_postgres64 extends ADORecordSet{ function _decode($blob) { - eval('$realblob="'.adodb_str_replace(array('"','$'),array('\"','\$'),$blob).'";'); - return $realblob; + if ($blob === NULL) return NULL; + return pg_unescape_bytea($blob); } function _fixblobs()