diff --git a/framework/helpers/base/SecurityHelper.php b/framework/helpers/base/SecurityHelper.php index e2f2215..ed5bfd6 100644 --- a/framework/helpers/base/SecurityHelper.php +++ b/framework/helpers/base/SecurityHelper.php @@ -151,7 +151,7 @@ class SecurityHelper throw new InvalidConfigException('The mcrypt PHP extension is not installed.'); } // AES uses a 128-bit block size - $module = @mcrypt_module_open('rijndael-128', '', MCRYPT_MODE_CBC, ''); + $module = @mcrypt_module_open('rijndael-128', '', 'cbc', ''); if ($module === false) { throw new Exception('Failed to initialize the mcrypt module.'); }