diff options
| author | Oleg Pudeyev <oleg@bsdpower.com> | 2011-02-26 08:05:43 -0500 |
|---|---|---|
| committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-02-26 08:05:43 -0500 |
| commit | 14fc25b2525a5537188a22763addf660ec55770d (patch) | |
| tree | e541dd4514754fe13a329ba5af08b05b3218be70 | |
| parent | 0c23d6c06932cd57a819b74b6ae1049984a66a34 (diff) | |
| parent | 3b15fe0a5bc2c5bf5fcd5a08921ad3026791d4da (diff) | |
| download | forums-14fc25b2525a5537188a22763addf660ec55770d.tar forums-14fc25b2525a5537188a22763addf660ec55770d.tar.gz forums-14fc25b2525a5537188a22763addf660ec55770d.tar.bz2 forums-14fc25b2525a5537188a22763addf660ec55770d.tar.xz forums-14fc25b2525a5537188a22763addf660ec55770d.zip | |
Merge branch 'ticket/bantu/9912' into develop-olympus
* ticket/bantu/9912:
[ticket/9912] Fix error in logic. Do not strip SID when user is not a bot.
| -rw-r--r-- | phpBB/includes/session.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index 1dc854caf2..d803f8d799 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -583,6 +583,13 @@ class session $bot = false; } + // Bot user, if they have a SID in the Request URI we need to get rid of it + // otherwise they'll index this page with the SID, duplicate content oh my! + if ($bot && isset($_GET['sid'])) + { + redirect(build_url(array('sid'))); + } + // If no data was returned one or more of the following occurred: // Key didn't match one in the DB // User does not exist @@ -619,12 +626,6 @@ class session } else { - // Bot user, if they have a SID in the Request URI we need to get rid of it - // otherwise they'll index this page with the SID, duplicate content oh my! - if (isset($_GET['sid'])) - { - redirect(build_url(array('sid'))); - } $this->data['session_last_visit'] = $this->time_now; } |
