diff options
author | Marc Alexander <admin@m-a-styles.de> | 2013-12-28 20:40:18 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2013-12-28 20:40:18 +0100 |
commit | f906fb41e9e995c0ea472a8d6594f54df6f208bf (patch) | |
tree | fb05c9a870e6a884a07b0ac5dfcf7df8da944589 /tests/functional/fixtures/ext/foo/bar/controller/controller.php | |
parent | 3e815616c5e5237cc1201e6e29337c4a601049c5 (diff) | |
download | forums-f906fb41e9e995c0ea472a8d6594f54df6f208bf.tar forums-f906fb41e9e995c0ea472a8d6594f54df6f208bf.tar.gz forums-f906fb41e9e995c0ea472a8d6594f54df6f208bf.tar.bz2 forums-f906fb41e9e995c0ea472a8d6594f54df6f208bf.tar.xz forums-f906fb41e9e995c0ea472a8d6594f54df6f208bf.zip |
[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
Diffstat (limited to 'tests/functional/fixtures/ext/foo/bar/controller/controller.php')
-rw-r--r-- | tests/functional/fixtures/ext/foo/bar/controller/controller.php | 8 |
1 files changed, 2 insertions, 6 deletions
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,18 +55,14 @@ 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', ), |