From f906fb41e9e995c0ea472a8d6594f54df6f208bf Mon Sep 17 00:00:00 2001 From: Marc Alexander <admin@m-a-styles.de> Date: Sat, 28 Dec 2013 20:40:18 +0100 Subject: [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 --- tests/functional/fixtures/ext/foo/bar/controller/controller.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/functional/fixtures/ext/foo/bar/controller/controller.php') diff --git a/tests/functional/fixtures/ext/foo/bar/controller/controller.php b/tests/functional/fixtures/ext/foo/bar/controller/controller.php index fc0f6e21af..558b202948 100644 --- a/tests/functional/fixtures/ext/foo/bar/controller/controller.php +++ b/tests/functional/fixtures/ext/foo/bar/controller/controller.php @@ -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', -- cgit v1.2.1