@@ -83,7 +83,9 @@ class Crypt
*/
public function decrypt($string)
{
+ $string = str_replace(' ', '+', $string);
$string = base64_decode($this->verifyString($string));
+
$passcrypt = openssl_decrypt($string, 'aes-256-cbc', $this->securityKey, OPENSSL_RAW_DATA, $this->getIv());
return substr($passcrypt, 10);
}
@@ -8,7 +8,7 @@ namespace Qii\Library;
* @version $Id: mail.plugin.php,v 1.1 2010/04/23 06:02:12 Jinhui.Zhu Exp $
_require(Qii_DIR . "/Library/Third/phpmailer/class.phpmailer.php");
-class Mail extends PHPMailer
+class Mail extends \PHPMailer
private $mailConfig;
private $_error;