Explorar o código

using squirrelmail functions instead of working with $_SESSION directly

tokul %!s(int64=20) %!d(string=hai) anos
pai
achega
639984da87
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/change_password/functions.php

+ 1 - 1
plugins/change_password/functions.php

@@ -100,7 +100,7 @@ function cpw_do_change()
 
     /* update our password stored in the session */
     $onetimepad = OneTimePadCreate(strlen($newpw));
-    $_SESSION['onetimepad'] = $onetimepad;
+    sqsession_register($onetimepad,'onetimepad');
     $key = OneTimePadEncrypt($newpw, $onetimepad);
     setcookie('key', $key, 0, $base_uri);