mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 02:06:32 +02:00
some fixes here and there
git-svn-id: file:///svn/phpbb/trunk@7860 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -132,7 +132,7 @@ class session
|
||||
*/
|
||||
function session_begin($update_session_page = true)
|
||||
{
|
||||
global $phpEx, $SID, $_SID, $db, $config, $phpbb_root_path;
|
||||
global $phpEx, $SID, $_SID, $_EXTRA_URL, $db, $config, $phpbb_root_path;
|
||||
|
||||
// Give us some basic information
|
||||
$this->time_now = time();
|
||||
@@ -193,6 +193,8 @@ class session
|
||||
$SID = '?sid=' . $this->session_id;
|
||||
}
|
||||
|
||||
$_EXTRA_URL = array();
|
||||
|
||||
// Why no forwarded_for et al? Well, too easily spoofed. With the results of my recent requests
|
||||
// it's pretty clear that in the majority of cases you'll at least be left with a proxy/cache ip.
|
||||
$this->ip = (!empty($_SERVER['REMOTE_ADDR'])) ? htmlspecialchars($_SERVER['REMOTE_ADDR']) : '';
|
||||
|
Reference in New Issue
Block a user