aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/session.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-03-22 22:54:24 +0100
committerIgor Wiedler <igor@wiedler.ch>2010-03-22 22:54:24 +0100
commita5057c9f2568d30b413d4b14140f6ecaac6315d5 (patch)
treecc814e87b4fc2b0295a3c277bdf133b2cf834674 /phpBB/includes/session.php
parentae48c8ee9ecf7866e4fe1ca4d3390d69a1adc2b4 (diff)
parentb3ff3be0dc56fdf32a7ae34b271b9016efa99c3b (diff)
downloadforums-a5057c9f2568d30b413d4b14140f6ecaac6315d5.tar
forums-a5057c9f2568d30b413d4b14140f6ecaac6315d5.tar.gz
forums-a5057c9f2568d30b413d4b14140f6ecaac6315d5.tar.bz2
forums-a5057c9f2568d30b413d4b14140f6ecaac6315d5.tar.xz
forums-a5057c9f2568d30b413d4b14140f6ecaac6315d5.zip
Merge branch 'develop-olympus' into git-tools
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r--phpBB/includes/session.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index 1a302d5991..8beb0161f9 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -608,6 +608,12 @@ 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;
}