aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-04-28 15:58:57 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-04-28 15:58:57 +0000
commit14ed732bffc1e5a7fd56aaf787d132874f792d66 (patch)
tree5b55ff07dc8304a34e5dba6cf39e1da366962393 /phpBB/includes/functions.php
parent34fcc7dbe12b823667edfe5a35b0d2dfcea2af37 (diff)
downloadforums-14ed732bffc1e5a7fd56aaf787d132874f792d66.tar
forums-14ed732bffc1e5a7fd56aaf787d132874f792d66.tar.gz
forums-14ed732bffc1e5a7fd56aaf787d132874f792d66.tar.bz2
forums-14ed732bffc1e5a7fd56aaf787d132874f792d66.tar.xz
forums-14ed732bffc1e5a7fd56aaf787d132874f792d66.zip
- fixed gen_rand_string
git-svn-id: file:///svn/phpbb/trunk@5856 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index bc13cf55cd..83e08a9d9a 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -125,6 +125,7 @@ function set_config($config_name, $config_value, $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)));
return substr($rand_str, 0, $num_chars);
}