Remove all mention of json encoding in Horde_Session
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 11 Nov 2010 20:40:45 +0000 (13:40 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 11 Nov 2010 20:40:45 +0000 (13:40 -0700)
framework/Core/lib/Horde/Session.php

index 8ceb715..a4f1513 100644 (file)
@@ -249,9 +249,7 @@ class Horde_Session
             return $this->get($app, $name);
         }
 
-        return ($_SESSION[self::SERIALIZED][$key] == 's')
-            ? @unserialize($data)
-            : json_decode($data, true);
+        return @unserialize($data);
     }
 
     /**
@@ -279,7 +277,7 @@ class Horde_Session
             if ($this->_lzf) {
                 $value = lzf_compress($value);
             }
-            $_SESSION[self::SERIALIZED][$key] = 's';
+            $_SESSION[self::SERIALIZED][$key] = true;
         } else {
             unset($_SESSION[self::SERIALIZED][$key]);
         }