From 4e565a4e94baeaaf2408628527d207fe43dbcd90 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 3 Jan 2013 17:20:24 +0100 Subject: [PATCH] Improved RegEx for bcrypt probing --- wcfsetup/install/files/lib/util/PasswordUtil.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/util/PasswordUtil.class.php b/wcfsetup/install/files/lib/util/PasswordUtil.class.php index 4e9e2d26e5..8824878600 100644 --- a/wcfsetup/install/files/lib/util/PasswordUtil.class.php +++ b/wcfsetup/install/files/lib/util/PasswordUtil.class.php @@ -68,7 +68,7 @@ final class PasswordUtil { * @return boolean */ public static function isBlowfish($hash) { - return (Regex::compile('^\$2(a|f|x)\$')->match($hash) ? true : false); + return (Regex::compile('^\$2[afx]\$')->match($hash) ? true : false); } /** -- 2.20.1