Support $2y$ prefix in PasswordUtil::isBlowfish()
authorTim Düsterhus <timwolla@googlemail.com>
Wed, 25 Nov 2015 17:33:57 +0000 (18:33 +0100)
committerTim Düsterhus <timwolla@googlemail.com>
Wed, 25 Nov 2015 17:33:57 +0000 (18:33 +0100)
wcfsetup/install/files/lib/util/PasswordUtil.class.php

index 013926e4169e420af47c99bf60f562127e89dc22..fb6ae45c893b0657a5dedc510e3097b3bd485558 100644 (file)
@@ -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);
        }
        
        /**