aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xphpBB/install/install_install.php8
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));