Commit 14781584 by ekerazha

Use a string for the mode too

The cipher is already specified as string
parent 88bfce96
......@@ -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.');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment