From: Tim Düsterhus Date: Wed, 25 Nov 2015 17:33:57 +0000 (+0100) Subject: Support $2y$ prefix in PasswordUtil::isBlowfish() X-Git-Tag: 2.1.9~16 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7be937e65ae05d3e5ecdcf4889f441baec022a00;p=GitHub%2FWoltLab%2FWCF.git Support $2y$ prefix in PasswordUtil::isBlowfish() --- 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); } /**