From 5b004f31b5ce5df459a7179f0f7d14d5be000927 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 3 Sep 2009 09:25:16 +0000 Subject: [PATCH] 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 --- phpBB/ucp.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpBB/ucp.php b/phpBB/ucp.php index 061933fb0cf..994fe064a1e 100644 --- a/phpBB/ucp.php +++ b/phpBB/ucp.php @@ -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_