From 14ed732bffc1e5a7fd56aaf787d132874f792d66 Mon Sep 17 00:00:00 2001 From: David M Date: Fri, 28 Apr 2006 15:58:57 +0000 Subject: [PATCH] - fixed gen_rand_string git-svn-id: file:///svn/phpbb/trunk@5856 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 1 + 1 file changed, 1 insertion(+) 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); }