fix listcommands template for Send form changes
[squirrelmail.git] / plugins / change_password / functions.php
index 9e180f6f0f8c841e6577452069b79ece3a45c9d8..5e65c4a2e26a39c1565b49e122ad7d5baeb1a03c 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * functions.php - Change Password plugin
  *
- * @copyright © 2003-2006 The SquirrelMail Project Team
+ * @copyright © 2003-2007 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
@@ -101,7 +101,7 @@ function cpw_do_change()
     $onetimepad = OneTimePadCreate(strlen($newpw));
     sqsession_register($onetimepad,'onetimepad');
     $key = OneTimePadEncrypt($newpw, $onetimepad);
-    setcookie('key', $key, 0, $base_uri);
+    sqsetcookie('key', $key, 0, $base_uri);
 
     /* make sure we write the session data before we redirect */
     session_write_close();