Browse Source

Use a string for the mode too

The cipher is already specified as string
tags/2.0.0-alpha
ekerazha 12 years ago
parent
commit
14781584f9
  1. 2
      framework/helpers/base/SecurityHelper.php

2
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.');
}

Loading…
Cancel
Save