WordPress.org

Make WordPress Core

Changeset 7803


Ignore:
Timestamp:
04/24/2008 01:13:59 AM (10 years ago)
Author:
ryan
Message:

strlen - 1. Props mdawaffe. see #6146

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-includes/pluggable.php

    r7799 r7803  
    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.