Clearing referrer more thoroughly.

This commit is contained in:
mark_story 2010-09-19 19:04:30 -04:00
parent 03d99d43be
commit c5a47d4daa

View file

@ -962,6 +962,8 @@ class AuthTest extends CakeTestCase {
$backup = $_SERVER['HTTP_REFERER']; $backup = $_SERVER['HTTP_REFERER'];
} }
$_SERVER['HTTP_REFERER'] = false; $_SERVER['HTTP_REFERER'] = false;
$_ENV['HTTP_REFERER'] = false;
putenv('HTTP_REFERER=');
$this->Controller->Session->write('Auth', array( $this->Controller->Session->write('Auth', array(
'AuthUser' => array('id' => '1', 'username' => 'nate') 'AuthUser' => array('id' => '1', 'username' => 'nate')