mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Set the cookie domain by default on installs which don't have a server_name set
git-svn-id: file:///svn/phpbb/trunk@5772 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
c5b203b485
commit
ec78e241b7
1 changed files with 4 additions and 2 deletions
|
@ -822,6 +822,8 @@ class install_install extends module
|
|||
$$var = request_var($var, '');
|
||||
}
|
||||
|
||||
$cookie_domain = ($server_name != '') ? $server_name : (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : getenv('SERVER_NAME');
|
||||
|
||||
// If we get here and the extension isn't loaded it should be safe to just go ahead and load it
|
||||
if (!extension_loaded($this->available_dbms[$dbms]['MODULE']))
|
||||
{
|
||||
|
@ -931,7 +933,7 @@ class install_install extends module
|
|||
WHERE config_name = 'board_contact'",
|
||||
|
||||
'UPDATE ' . $table_prefix . "config
|
||||
SET config_value = '" . $db->sql_escape($server_name) . "'
|
||||
SET config_value = '" . $db->sql_escape($cookie_domain) . "'
|
||||
WHERE config_name = 'cookie_domain'",
|
||||
|
||||
'UPDATE ' . $table_prefix . "config
|
||||
|
@ -1092,7 +1094,7 @@ class install_install extends module
|
|||
'TITLE' => $lang['INSTALL_CONGRATS'],
|
||||
'BODY' => sprintf($lang['INSTALL_CONGRATS_EXPLAIN'], '<a href="../docs/README.html" target="_blank">', '</a>'),
|
||||
'L_SUBMIT' => $lang['INSTALL_LOGIN'],
|
||||
'U_ACTION' => $phpbb_root_path . 'adm/index. ' . $phpEx . $SID,
|
||||
'U_ACTION' => $phpbb_root_path . 'adm/index.' . $phpEx . $SID,
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue