1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 20:13:22 +01:00

[ticket/9908] Send 301 before stripping SID so bots do (hopefully) not revisit.

PHPBB3-9908
This commit is contained in:
Andreas Fischer 2011-01-19 03:47:51 +01:00
parent 57879d508a
commit b5cefc400e

View File

@ -592,6 +592,7 @@ class session
// otherwise they'll index this page with the SID, duplicate content oh my!
if ($bot && isset($_GET['sid']))
{
send_status_line(301, 'Moved Permanently');
redirect(build_url(array('sid')));
}