mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
[bug/58025] Search robots are now redirected if they send a SID in the request
Previously search robots could stumble upon a board link somewhere on the web containing a SID they'd follow it and end up indexing that page with the SID in the request URI, this fix prevents that by redirecting them to the same URI just without the SID.
This commit is contained in:
parent
60bd1edcb5
commit
d07e152ea7
2 changed files with 7 additions and 0 deletions
|
@ -103,6 +103,7 @@
|
|||
<li>[Fix] Allow multibyte keys in request_var(). (Bug #51555)</li>
|
||||
<li>[Fix] Prevent wrong tar archive type detection. (Bug #12531)</li>
|
||||
<li>[Fix] Correct redirection after login to forum not in web root (Bug #58755)</li>
|
||||
<li>[Fix] Redirect search engines that access pages with SIDs in the URL. (Bug #58025)</li>
|
||||
<li>[Feature] Support for Microsoft's Native SQL Server Driver for PHP (Bug #57055 - Patch by Chris Pucci at Microsoft)</li>
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue