From ae989c77585489b87b0280c0aecc1f4256259d21 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 8 Nov 2010 13:25:33 +0000 Subject: [PATCH] assumption if strlen>24 and not starting with " it is to be treated as bas64 encoded, falls short of postgres timestamps length; testing for strlen>26 now --- phpgwapi/inc/class.db_backup.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.db_backup.inc.php b/phpgwapi/inc/class.db_backup.inc.php index 4ed0cf58c1..19e92aa8bc 100644 --- a/phpgwapi/inc/class.db_backup.inc.php +++ b/phpgwapi/inc/class.db_backup.inc.php @@ -637,7 +637,7 @@ class db_backup } $arr[$key] = str_replace(self::BACKSLASH_TOKEN,'\\',str_replace(array('\\\\','\\n','\\r','\\"'),array(self::BACKSLASH_TOKEN,"\n","\r",'"'),substr($field,1,-1))); } - elseif ($keys && strlen($field) > 24) + elseif ($keys && strlen($field) > 26) { $arr[$key] = base64_decode($field); }