From 235d2069e0e7cecfd51d4eed5c875cc865f35486 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sat, 21 Dec 2013 16:31:20 +0100 Subject: [ticket/11997] Allow redirects to parent folders like previously Redirects to parent folders were possible with the previous redirect function. This change will allow these redirects again. PHPBB3-11997 --- tests/security/redirect_test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/security') diff --git a/tests/security/redirect_test.php b/tests/security/redirect_test.php index 48360e3034..24ddaa265d 100644 --- a/tests/security/redirect_test.php +++ b/tests/security/redirect_test.php @@ -38,9 +38,9 @@ class phpbb_security_redirect_test extends phpbb_security_test_base array('./foobar', false, false, 'http://localhost/phpBB/foobar'), array('foo/bar', false, false, 'http://localhost/phpBB/foo/bar'), array('./foo/bar', false, false, 'http://localhost/phpBB/foo/bar'), - array('./../index.php', false, false, 'http://localhost/phpBB/index.php'), + array('./../index.php', false, false, 'http://localhost/index.php'), array('./../index.php', true, false, 'http://localhost/index.php'), - array('../index.php', false, false, 'http://localhost/phpBB/index.php'), + array('../index.php', false, false, 'http://localhost/index.php'), array('../index.php', true, false, 'http://localhost/index.php'), array('./index.php', false, false, 'http://localhost/phpBB/index.php'), ); -- cgit v1.2.1