mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Bug #57345 - No longer return the character O in generated random strings and passwords.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10480 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
c0836e8835
commit
4bb3266cc6
2 changed files with 2 additions and 1 deletions
|
@ -94,6 +94,7 @@
|
||||||
<li>[Fix] Correctly sort database backup file list by date on database restore page. (Bug #57385)</li>
|
<li>[Fix] Correctly sort database backup file list by date on database restore page. (Bug #57385)</li>
|
||||||
<li>[Fix] Take admin's time zone settings into account when listing database backup files. (Bug #57385)</li>
|
<li>[Fix] Take admin's time zone settings into account when listing database backup files. (Bug #57385)</li>
|
||||||
<li>[Fix] Honor minimum and maximum password length in generated passwords as much as we can. (Bug #13181)</li>
|
<li>[Fix] Honor minimum and maximum password length in generated passwords as much as we can. (Bug #13181)</li>
|
||||||
|
<li>[Fix] No longer return the character O in generated random strings and passwords. (Bug #57345)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<a name="v306"></a><h3>1.ii. Changes since 3.0.6</h3>
|
<a name="v306"></a><h3>1.ii. Changes since 3.0.6</h3>
|
||||||
|
|
|
@ -202,7 +202,7 @@ function set_config_count($config_name, $increment, $is_dynamic = false)
|
||||||
function gen_rand_string($num_chars = 8)
|
function gen_rand_string($num_chars = 8)
|
||||||
{
|
{
|
||||||
$rand_str = unique_id();
|
$rand_str = unique_id();
|
||||||
$rand_str = str_replace('0', 'Z', strtoupper(base_convert($rand_str, 16, 35)));
|
$rand_str = str_replace(array('0', 'O'), array('Z', 'Y'), strtoupper(base_convert($rand_str, 16, 34)));
|
||||||
|
|
||||||
return substr($rand_str, 0, $num_chars);
|
return substr($rand_str, 0, $num_chars);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue