WordPress.org

Make WordPress Core

Ticket #16072: 16072.diff

File 16072.diff, 1.1 KB (added by duck_, 7 years ago)
  • wp-includes/class-phpass.php

     
    33 * Portable PHP password hashing framework.
    44 * @package phpass
    55 * @since 2.5
    6  * @version 0.2 / genuine.
     6 * @version 0.3 / WordPress
    77 * @link http://www.openwall.com/phpass/
    88 */
    99
    1010#
    1111# Written by Solar Designer <solar at openwall.com> in 2004-2006 and placed in
    12 # the public domain.
     12# the public domain.  Revised in subsequent years, still public domain.
    1313#
    1414# There's absolutely no warranty.
    1515#
     
    2929 * Portable PHP password hashing framework.
    3030 *
    3131 * @package phpass
    32  * @version 0.2 / genuine.
     32 * @version 0.3 / WordPress
    3333 * @link http://www.openwall.com/phpass/
    3434 * @since 2.5
    3535 */
     
    114114                if (substr($setting, 0, 2) == $output)
    115115                        $output = '*1';
    116116
    117                 if (substr($setting, 0, 3) != '$P$')
     117                $id = substr($setting, 0, 3);
     118                # We use "$P$", phpBB3 uses "$H$" for the same thing
     119                if ($id != '$P$' && $id != '$H$')
    118120                        return $output;
    119121
    120122                $count_log2 = strpos($this->itoa64, $setting[3]);