From 14781584f9bacdff21ee03ec14dbb8c9bcf79e96 Mon Sep 17 00:00:00 2001 From: ekerazha Date: Sat, 4 May 2013 22:02:39 +0300 Subject: [PATCH] Use a string for the mode too The cipher is already specified as string --- framework/helpers/base/SecurityHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.'); }