From 19cd235891b2be9d8faaabeb54a571a6beb335fa Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 17 Nov 2007 14:18:59 +0000 Subject: [PATCH] added fix for half-deleted sessions --- lam/lib/ldap.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lam/lib/ldap.inc b/lam/lib/ldap.inc index f077d4e1..d5fe3922 100644 --- a/lam/lib/ldap.inc +++ b/lam/lib/ldap.inc @@ -228,6 +228,9 @@ class Ldap{ if (function_exists('mcrypt_create_iv')) { // MCrypt may have been enabled in a running session if (!isset($_COOKIE["IV"]) || ($_COOKIE["IV"] == '')) return $data; + if ($_COOKIE["IV"] == "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") { + return $data; + } // read key and iv from cookie $iv = base64_decode($_COOKIE["IV"]); $key = base64_decode($_COOKIE["Key"]); @@ -251,6 +254,9 @@ class Ldap{ if (function_exists('mcrypt_create_iv')) { // MCrypt may have been enabled in a running session if (!isset($_COOKIE["IV"]) || ($_COOKIE["IV"] == '')) return $data; + if ($_COOKIE["IV"] == "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") { + return $data; + } // read key and iv from cookie $iv = base64_decode($_COOKIE["IV"]); $key = base64_decode($_COOKIE["Key"]);