mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
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:
parent
0571fc21e0
commit
bd25eead83
@ -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)));
|
$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);
|
$arr[$key] = base64_decode($field);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user