From 414c78b6397faa4236f26e93f663927b5fe5a92f Mon Sep 17 00:00:00 2001 From: bgigon Date: Thu, 30 Sep 2004 12:11:43 +0000 Subject: [PATCH] Fix strange bug into crypto api. 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..ce71f46ca8 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) {