Fix sqauth_read_password() for plugins running on the login_verified hook when the...
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 25 Sep 2010 04:08:03 +0000 (04:08 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 25 Sep 2010 04:08:03 +0000 (04:08 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14067 7612ce4b-ef26-0410-bec9-ea0150e637f0

doc/ChangeLog
functions/auth.php

index ca051306cf0050bc0680a955dd77bdca64fbadbc..42c638dfa04ef699c860964dc5bbd48100b78097 100644 (file)
@@ -352,6 +352,7 @@ Version 1.5.2 - SVN
   - Fixed attachment filename decoding problems (#2994865).
   - Now allow multiple plugins to handle (add links for) a single
     attachment MIME type.
+  - Fixed sqauth_read_password() for plugins on the login_verified hook.
 
 Version 1.5.1 (branched on 2006-02-12)
 --------------------------------------
index 5304458e6120d0f36bbf3856a235cae950ce6ba7..fbc28e06ba0d98dc0327196844d8ab2f06d3605b 100644 (file)
@@ -93,6 +93,9 @@ function sqauth_is_logged_in() {
  * @since 1.5.1
  */
 function sqauth_read_password() {
+    global $currentHookName;
+    if ($currentHookName == 'login_verified') global $key;
+
     sqgetGlobalVar('key',         $key,       SQ_COOKIE);
     sqgetGlobalVar('onetimepad',  $onetimepad,SQ_SESSION);