mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Clearing referrer more thoroughly.
This commit is contained in:
parent
03d99d43be
commit
c5a47d4daa
1 changed files with 2 additions and 0 deletions
|
@ -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')
|
||||||
|
|
Loading…
Add table
Reference in a new issue