From: Meik S. <acy...@ph...> - 2009-09-03 09:26:12
|
Author: acydburn Date: Thu Sep 3 10:25:16 2009 New Revision: 10090 Log: 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) Modified: branches/phpBB-3_0_0/phpBB/ucp.php Modified: branches/phpBB-3_0_0/phpBB/ucp.php ============================================================================== *** branches/phpBB-3_0_0/phpBB/ucp.php (original) --- branches/phpBB-3_0_0/phpBB/ucp.php Thu Sep 3 10:25:16 2009 *************** *** 143,148 **** --- 143,154 ---- 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_ |