Fix strange bug into crypto api.

Somes "ghost" characters appears
This commit is contained in:
bgigon 2004-09-30 12:11:43 +00:00
parent f518db0997
commit 414c78b639

View File

@ -268,6 +268,10 @@
$data = $encrypteddata;
}
// Fix strange bug
// Without this, somes ^@^@^@^@ appears in data
$data = chop($data);
$newdata = @unserialize($data);
if($newdata)
{