From: <lei...@us...> - 2010-11-08 13:28:27
|
Author: leithoff Date: Mon Nov 8 14:28:17 2010 New Revision: 32886 URL: http://www.egroupware.org/viewvc/egroupware?rev=32886&view=rev Log: 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 Modified: branches/1.6/phpgwapi/inc/class.db_backup.inc.php Modified: branches/1.6/phpgwapi/inc/class.db_backup.inc.php URL: http://www.egroupware.org/viewvc/egroupware/branches/1.6/phpgwapi/inc/class.db_backup.inc.php?rev=32886&r1=32885&r2=32886&view=diff ============================================================================== --- branches/1.6/phpgwapi/inc/class.db_backup.inc.php (original) +++ branches/1.6/phpgwapi/inc/class.db_backup.inc.php Mon Nov 8 14:28:17 2010 @@ -342,7 +342,7 @@ } $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); } |