Fix all existing links and redirection to ?do=login
This commit is contained in:
parent
dd51f653d0
commit
9e4cc28e29
6 changed files with 31 additions and 31 deletions
tests
|
@ -203,7 +203,7 @@ class UtilsTest extends PHPUnit\Framework\TestCase
|
|||
public function testGenerateLocationLoop()
|
||||
{
|
||||
$ref = 'http://localhost/?test';
|
||||
$this->assertEquals('?', generateLocation($ref, 'localhost', array('test')));
|
||||
$this->assertEquals('./?', generateLocation($ref, 'localhost', array('test')));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -212,7 +212,7 @@ class UtilsTest extends PHPUnit\Framework\TestCase
|
|||
public function testGenerateLocationOut()
|
||||
{
|
||||
$ref = 'http://somewebsite.com/?test';
|
||||
$this->assertEquals('?', generateLocation($ref, 'localhost'));
|
||||
$this->assertEquals('./?', generateLocation($ref, 'localhost'));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue