Skip to content

Commit

Permalink
We only remove board cookies (this is what the feature is supposed to…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
acydburn committed Sep 3, 2009
1 parent c8ce477 commit 5b004f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions phpBB/ucp.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@

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_
Expand Down

0 comments on commit 5b004f3

Please sign in to comment.