diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-02-26 19:18:09 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-02-26 19:18:09 +0000 |
| commit | c190ad23703c0613795170109ced443a073a73f0 (patch) | |
| tree | 33a421ea4862f90f009b83b0eb6d06e2a0d1fdad /phpBB/includes | |
| parent | 2dee304b0e43d5eac93da7b3370ed43383a295d5 (diff) | |
| download | forums-c190ad23703c0613795170109ced443a073a73f0.tar forums-c190ad23703c0613795170109ced443a073a73f0.tar.gz forums-c190ad23703c0613795170109ced443a073a73f0.tar.bz2 forums-c190ad23703c0613795170109ced443a073a73f0.tar.xz forums-c190ad23703c0613795170109ced443a073a73f0.zip | |
Reduce size of stored page info ... hopefully this won't impact things unecessarily on busy forums.
git-svn-id: file:///svn/phpbb/trunk@3550 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/session.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index bedb211f25..0b31ff18c8 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -31,12 +31,12 @@ class session // Called at each page start ... checks for, updates and/or creates a session function start($update = true) { - global $SID, $db, $config; + global $phpEx, $SID, $db, $config; $current_time = time(); $this->browser = (!empty($_SERVER['HTTP_USER_AGENT'])) ? $_SERVER['HTTP_USER_AGENT'] : $_ENV['HTTP_USER_AGENT']; - $this->page = (!empty($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : $_ENV['PHP_SELF']; - $this->page .= '&' . ((!empty($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : $_ENV['QUERY_STRING']); + $this->page = (!empty($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : $_ENV['REQUEST_URI']; + $this->page = preg_replace('#^.*?/?([a-z]+?)\.' . $phpEx . '\?sid=.*?(&.*)?$#', '\1\2', $this->page); if (isset($_COOKIE[$config['cookie_name'] . '_sid']) || isset($_COOKIE[$config['cookie_name'] . '_data'])) { |
