mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
unique cookie name anyone?
git-svn-id: file:///svn/phpbb/trunk@6842 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
94b50f1797
commit
77335d94e4
1 changed files with 8 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue