mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
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
This commit is contained in:
parent
c8ce477f90
commit
5b004f31b5
1 changed files with 6 additions and 0 deletions
|
@ -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_
|
||||
|
|
Loading…
Add table
Reference in a new issue