From c5a47d4daacc75a95bce9be5a0f1a0ceeb03dd9e Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 19 Sep 2010 19:04:30 -0400 Subject: [PATCH] Clearing referrer more thoroughly. --- cake/tests/cases/libs/controller/components/auth.test.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cake/tests/cases/libs/controller/components/auth.test.php b/cake/tests/cases/libs/controller/components/auth.test.php index 275c1e884..38798036f 100644 --- a/cake/tests/cases/libs/controller/components/auth.test.php +++ b/cake/tests/cases/libs/controller/components/auth.test.php @@ -962,6 +962,8 @@ class AuthTest extends CakeTestCase { $backup = $_SERVER['HTTP_REFERER']; } $_SERVER['HTTP_REFERER'] = false; + $_ENV['HTTP_REFERER'] = false; + putenv('HTTP_REFERER='); $this->Controller->Session->write('Auth', array( 'AuthUser' => array('id' => '1', 'username' => 'nate')