Fix determination of session auth data.
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 28 Jan 2010 22:08:13 +0000 (15:08 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 28 Jan 2010 22:08:13 +0000 (15:08 -0700)
framework/Auth/lib/Horde/Auth.php

index 52c78d0..70cae63 100644 (file)
@@ -952,11 +952,12 @@ class Horde_Auth
             return false;
         }
 
-        $endpos = $pos + 7;
+        $pos += 11;
+        $endpos = $pos + 1;
 
         while ($endpos !== false) {
             $endpos = strpos($session_data, '|', $endpos);
-            $data = @unserialize(substr($session_data, $pos + 7, $endpos));
+            $data = @unserialize(substr($session_data, $pos, $endpos));
             if (is_array($data)) {
                 return empty($data)
                     ? false