From 17fb6dc9f29a2073fc12808596547a402d0d4990 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 8 Jul 2001 13:36:04 +0000 Subject: [PATCH] undid the last change with stripslashes --- phpgwapi/inc/class.crypto.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.crypto.inc.php b/phpgwapi/inc/class.crypto.inc.php index 3c096f6c25..9b3dcea0e3 100644 --- a/phpgwapi/inc/class.crypto.inc.php +++ b/phpgwapi/inc/class.crypto.inc.php @@ -159,14 +159,14 @@ { $data = $encrypteddata; } + $data = stripslashes($data); + if(!strpos(' '.$data,'O:8:"stdClass"')) { return unserialize($data); } else { - $data = stripslashes($data); - return $data; } }