Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit 61d6f716bc718c0cefb6b0ef7cfdf8c18a37bac6 1 parent c870044
@markstory markstory authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/Cake/Utility/Security.php
View
3  lib/Cake/Utility/Security.php
@@ -272,7 +272,8 @@ protected static function _crypt($password, $type = null, $salt = false) {
$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.',
Please sign in to comment.
Something went wrong with that request. Please try again.