WordPress.org

Make WordPress Core

Changeset 7802


Ignore:
Timestamp:
04/24/08 01:13:35 (6 years ago)
Author:
ryan
Message:

strlen - 1. Props mdawaffe. see #6146

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r7797 r7802  
    11681168    $password = ''; 
    11691169    for ( $i = 0; $i < $length; $i++ ) 
    1170         $password .= substr($chars, mt_rand(0, strlen($chars)), 1); 
     1170        $password .= substr($chars, mt_rand(0, strlen($chars) - 1), 1); 
    11711171    return $password; 
    11721172} 
Note: See TracChangeset for help on using the changeset viewer.