aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-09-03 09:25:16 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-09-03 09:25:16 +0000
commit5b004f31b5ce5df459a7179f0f7d14d5be000927 (patch)
tree70d63f3fa53c71d08dd17f08abc201f0f94f8c64 /phpBB/ucp.php
parentattributed the fix for bug 43045 to DavidIQ (diff)
downloadphpbb-5b004f31b5ce5df459a7179f0f7d14d5be000927.tar.gz
phpbb-5b004f31b5ce5df459a7179f0f7d14d5be000927.tar.bz2
phpbb-5b004f31b5ce5df459a7179f0f7d14d5be000927.zip
We only remove board cookies (this is what the feature is supposed to do). This also solves issues with headers having > 20 Set-Cookie calls (which in turn breaks varnish 2.0.4-rc1 too)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10090 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/ucp.php')
-rw-r--r--phpBB/ucp.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/ucp.php b/phpBB/ucp.php
index 061933fb0c..994fe064a1 100644
--- a/phpBB/ucp.php
+++ b/phpBB/ucp.php
@@ -143,6 +143,12 @@ switch ($mode)
foreach ($_COOKIE as $cookie_name => $cookie_data)
{
+ // Only delete board cookies, no other ones...
+ if (strpos($cookie_name, $config['cookie_name'] . '_') !== 0)
+ {
+ continue;
+ }
+
$cookie_name = str_replace($config['cookie_name'] . '_', '', $cookie_name);
// Polls are stored as {cookie_name}_poll_{topic_id}, cookie_name_ got removed, therefore checking for poll_