1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02: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:
Marc Alexander
2013-12-28 20:40:18 +01:00
parent 3e815616c5
commit f906fb41e9

View File

@@ -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',