mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 00:07:44 +02:00
Merge branch 'bug/cs278/58025' into develop-olympus
* bug/cs278/58025: [bug/58025] Search robots are now redirected if they send a SID in the request Conflicts: phpBB/docs/CHANGELOG.html
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user