소스 검색

using squirrelmail functions instead of working with $_SESSION directly

tokul 20 년 전
부모
커밋
639984da87
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);