diff options
| author | Henry Sudhof <kellanved@phpbb.com> | 2007-05-26 12:44:17 +0000 |
|---|---|---|
| committer | Henry Sudhof <kellanved@phpbb.com> | 2007-05-26 12:44:17 +0000 |
| commit | 62be0ed93ae02260d96dffa3f0fe82bf0dde6ffd (patch) | |
| tree | 966a6e6fc413353146dcfe0aeb6bb325fd71f070 /phpBB/install/install_install.php | |
| parent | ffb1366af8ca6ac3f4c05966bd3d367bc0357dfb (diff) | |
| download | forums-62be0ed93ae02260d96dffa3f0fe82bf0dde6ffd.tar forums-62be0ed93ae02260d96dffa3f0fe82bf0dde6ffd.tar.gz forums-62be0ed93ae02260d96dffa3f0fe82bf0dde6ffd.tar.bz2 forums-62be0ed93ae02260d96dffa3f0fe82bf0dde6ffd.tar.xz forums-62be0ed93ae02260d96dffa3f0fe82bf0dde6ffd.zip | |
#11431
git-svn-id: file:///svn/phpbb/trunk@7684 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/install_install.php')
| -rwxr-xr-x | phpBB/install/install_install.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php index ef04a1e3b9..1bf86318c8 100755 --- a/phpBB/install/install_install.php +++ b/phpBB/install/install_install.php @@ -1359,7 +1359,10 @@ class install_install extends module // We set a (semi-)unique cookie name to bypass login issues related to the cookie name. $cookie_name = 'phpbb3_'; - $cookie_name .= strtolower(gen_rand_string(5)); + $rand_str = md5(mt_rand()); + $rand_str = str_replace('0', 'z', base_convert($rand_str, 16, 35)); + $rand_str = substr($rand_str, 0, 5); + $cookie_name .= strtolower($rand_str); $sql_ary[] = 'UPDATE ' . $table_prefix . "config SET config_value = '" . $db->sql_escape($cookie_name) . "' |
