mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11997] Use functional test cases that should always work
The previous test cases that tried to redirect to ../index.php and similar might cause us to try to go to http://localhost/../index.php, which will result in http://index.php. As this obviously will trigger an error as intended, we should not put this inside our test cases for the redirect function. PHPBB3-11997
This commit is contained in:
parent
3e815616c5
commit
f906fb41e9
1 changed files with 2 additions and 6 deletions
|
@ -55,17 +55,13 @@ class controller
|
|||
'index.php',
|
||||
),
|
||||
array(
|
||||
append_sid($this->root_path . '../index.' . $this->php_ext),
|
||||
'../index.php',
|
||||
append_sid($this->root_path . 'foo/bar/index.' . $this->php_ext),
|
||||
'foo/bar/index.php',
|
||||
),
|
||||
array(
|
||||
append_sid($this->root_path . 'tests/index.' . $this->php_ext),
|
||||
'tests/index.php',
|
||||
),
|
||||
array(
|
||||
append_sid($this->root_path . '../tests/index.' . $this->php_ext),
|
||||
'../tests/index.php',
|
||||
),
|
||||
array(
|
||||
$this->helper->url('index'),
|
||||
$rewrite_prefix . 'index',
|
||||
|
|
Loading…
Add table
Reference in a new issue