aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-02-07 00:27:00 +0000
committerAndreas Fischer <bantu@phpbb.com>2010-02-07 00:27:00 +0000
commit4bb3266cc62003d5bd6fafda03a5582ea06250e9 (patch)
tree669c02788570eb94e47a169b43af90dda029b22b /phpBB/includes/functions.php
parentc0836e8835f0b3105baecdc710cd101920d8339b (diff)
downloadforums-4bb3266cc62003d5bd6fafda03a5582ea06250e9.tar
forums-4bb3266cc62003d5bd6fafda03a5582ea06250e9.tar.gz
forums-4bb3266cc62003d5bd6fafda03a5582ea06250e9.tar.bz2
forums-4bb3266cc62003d5bd6fafda03a5582ea06250e9.tar.xz
forums-4bb3266cc62003d5bd6fafda03a5582ea06250e9.zip
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
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 823c71dbf0..23221c69ea 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -202,7 +202,7 @@ function set_config_count($config_name, $increment, $is_dynamic = false)
function gen_rand_string($num_chars = 8)
{
$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);
}