Ticket #16072: 16072.diff
| File 16072.diff, 1.1 KB (added by duck_, 2 years ago) |
|---|
-
wp-includes/class-phpass.php
3 3 * Portable PHP password hashing framework. 4 4 * @package phpass 5 5 * @since 2.5 6 * @version 0. 2 / genuine.6 * @version 0.3 / WordPress 7 7 * @link http://www.openwall.com/phpass/ 8 8 */ 9 9 10 10 # 11 11 # 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. 13 13 # 14 14 # There's absolutely no warranty. 15 15 # … … 29 29 * Portable PHP password hashing framework. 30 30 * 31 31 * @package phpass 32 * @version 0. 2 / genuine.32 * @version 0.3 / WordPress 33 33 * @link http://www.openwall.com/phpass/ 34 34 * @since 2.5 35 35 */ … … 114 114 if (substr($setting, 0, 2) == $output) 115 115 $output = '*1'; 116 116 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$') 118 120 return $output; 119 121 120 122 $count_log2 = strpos($this->itoa64, $setting[3]);
