From 7be937e65ae05d3e5ecdcf4889f441baec022a00 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 25 Nov 2015 18:33:57 +0100 Subject: [PATCH] Support $2y$ prefix in PasswordUtil::isBlowfish() --- 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 013926e416..fb6ae45c89 100644 --- a/wcfsetup/install/files/lib/util/PasswordUtil.class.php +++ b/wcfsetup/install/files/lib/util/PasswordUtil.class.php @@ -90,7 +90,7 @@ final class PasswordUtil { * @return boolean */ public static function isBlowfish($hash) { - return (Regex::compile('^\$2[afx]\$')->match($hash) ? true : false); + return (Regex::compile('^\$2[afxy]\$')->match($hash) ? true : false); } /** -- 2.20.1