From: Michael M Slusarz Date: Thu, 28 Jan 2010 22:08:13 +0000 (-0700) Subject: Fix determination of session auth data. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2805b70a4ad57cb2dea3442bbdcb6777455fdedc;p=horde.git Fix determination of session auth data. --- diff --git a/framework/Auth/lib/Horde/Auth.php b/framework/Auth/lib/Horde/Auth.php index 52c78d0a0..70cae635f 100644 --- a/framework/Auth/lib/Horde/Auth.php +++ b/framework/Auth/lib/Horde/Auth.php @@ -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