diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-01-05 15:31:04 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-01-05 15:31:04 +0000 |
commit | 77335d94e4258112a69b5484a3006233c7550630 (patch) | |
tree | abaea5f44efee48cdc1b4f99fb7957967f6d5f78 /phpBB/install/install_install.php | |
parent | 94b50f1797937c23bb400628dd51e09c6148c16d (diff) | |
download | forums-77335d94e4258112a69b5484a3006233c7550630.tar forums-77335d94e4258112a69b5484a3006233c7550630.tar.gz forums-77335d94e4258112a69b5484a3006233c7550630.tar.bz2 forums-77335d94e4258112a69b5484a3006233c7550630.tar.xz forums-77335d94e4258112a69b5484a3006233c7550630.zip |
unique cookie name anyone?
git-svn-id: file:///svn/phpbb/trunk@6842 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/install_install.php')
-rwxr-xr-x | phpBB/install/install_install.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php index 06579e7c49..c9231075df 100755 --- a/phpBB/install/install_install.php +++ b/phpBB/install/install_install.php @@ -1320,6 +1320,14 @@ class install_install extends module WHERE config_name = 'captcha_gd'"; } + // 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)); + + $sql_ary[] = 'UPDATE ' . $table_prefix . "config + SET config_value = '" . $db->sql_escape($cookie_name) . "' + WHERE config_name = 'cookie_name'"; + foreach ($sql_ary as $sql) { //$sql = trim(str_replace('|', ';', $sql)); |