aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/crypto/driver/bcrypt.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/crypto/driver/bcrypt.php')
-rw-r--r--phpBB/includes/crypto/driver/bcrypt.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/crypto/driver/bcrypt.php b/phpBB/includes/crypto/driver/bcrypt.php
index d98bf8c940..c6334d1779 100644
--- a/phpBB/includes/crypto/driver/bcrypt.php
+++ b/phpBB/includes/crypto/driver/bcrypt.php
@@ -53,6 +53,10 @@ class phpbb_crypto_driver_bcrypt extends phpbb_crypto_driver_base
}
$hash = crypt($password, $salt);
+ if (strlen($hash) < 60)
+ {
+ return false;
+ }
return $hash;
}