From 3bc6615523baae6cf0780adaa917782a0df4b6c1 Mon Sep 17 00:00:00 2001 From: bgigon Date: Thu, 30 Sep 2004 12:21:08 +0000 Subject: [PATCH] Fix strange bugs. Somes "ghost" characters appears --- phpgwapi/inc/class.crypto.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpgwapi/inc/class.crypto.inc.php b/phpgwapi/inc/class.crypto.inc.php index f80ff242e9..fd768d434c 100644 --- a/phpgwapi/inc/class.crypto.inc.php +++ b/phpgwapi/inc/class.crypto.inc.php @@ -268,6 +268,10 @@ $data = $encrypteddata; } + // Fix strange bug + // Without this, somes ^@^@^@^@ appears in data + $data = chop($data); + $newdata = @unserialize($data); if($newdata) {