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

This commit is contained in:
Klaus Leithoff 2010-11-08 13:24:01 +00:00
parent 0571fc21e0
commit bd25eead83

View File

@ -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);
}