Attempting to get passing builds on travisci

Currently the 5.2 builds fail due to the length checks on blowfish
hashes.  Try a shorter wall to see if those builds will pass.
This commit is contained in:
mark_story 2012-09-26 21:48:05 -04:00
parent c870044262
commit 61d6f716bc

View file

@ -272,7 +272,8 @@ class Security {
$salt,
);
$salt = vsprintf($saltFormat[$hashType], $vspArgs);
} elseif ($salt === true || strpos($salt, '$2a$') !== 0 || strlen($salt) < 29) {
}
if ($salt === true || strpos($salt, '$2a$') !== 0 || strlen($salt) < 12) {
trigger_error(__d(
'cake_dev',
'Invalid salt: %s for %s Please visit http://www.php.net/crypt and read the appropriate section for building %s salts.',