[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:
Marc Alexander 2013-12-28 20:40:18 +01:00
parent 3e815616c5
commit f906fb41e9

View file

@ -55,17 +55,13 @@ class controller
'index.php', 'index.php',
), ),
array( array(
append_sid($this->root_path . '../index.' . $this->php_ext), append_sid($this->root_path . 'foo/bar/index.' . $this->php_ext),
'../index.php', 'foo/bar/index.php',
), ),
array( array(
append_sid($this->root_path . 'tests/index.' . $this->php_ext), append_sid($this->root_path . 'tests/index.' . $this->php_ext),
'tests/index.php', 'tests/index.php',
), ),
array(
append_sid($this->root_path . '../tests/index.' . $this->php_ext),
'../tests/index.php',
),
array( array(
$this->helper->url('index'), $this->helper->url('index'),
$rewrite_prefix . 'index', $rewrite_prefix . 'index',