aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-01-19 03:47:51 +0100
committerAndreas Fischer <bantu@phpbb.com>2011-06-10 20:08:10 +0200
commitb5cefc400e6a8c3500b8ed5126548e3cbb727858 (patch)
tree1779b982de8e16fb53a38a4fc5ec091125a7d97c
parent57879d508ab0cd7c1ab5a755c082b4d1ea549534 (diff)
downloadforums-b5cefc400e6a8c3500b8ed5126548e3cbb727858.tar
forums-b5cefc400e6a8c3500b8ed5126548e3cbb727858.tar.gz
forums-b5cefc400e6a8c3500b8ed5126548e3cbb727858.tar.bz2
forums-b5cefc400e6a8c3500b8ed5126548e3cbb727858.tar.xz
forums-b5cefc400e6a8c3500b8ed5126548e3cbb727858.zip
[ticket/9908] Send 301 before stripping SID so bots do (hopefully) not revisit.
PHPBB3-9908
-rw-r--r--phpBB/includes/session.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index ceb22c197c..7db319493b 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -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')));
}