aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-11-09 22:29:25 +0100
committerMarc Alexander <admin@m-a-styles.de>2014-11-09 23:00:39 +0100
commit9bb302b92ca58d9204290363b190ef4b57009ec6 (patch)
tree478fd74bcfe25b6975043179849824c16920034c /tests
parent0e772afb9db640e54e84cfccaddcf74f3edbb3fb (diff)
downloadforums-9bb302b92ca58d9204290363b190ef4b57009ec6.tar
forums-9bb302b92ca58d9204290363b190ef4b57009ec6.tar.gz
forums-9bb302b92ca58d9204290363b190ef4b57009ec6.tar.bz2
forums-9bb302b92ca58d9204290363b190ef4b57009ec6.tar.xz
forums-9bb302b92ca58d9204290363b190ef4b57009ec6.zip
[ticket/security-169] Stop loop through referer dir in top directory
SECURITY-169
Diffstat (limited to 'tests')
-rw-r--r--tests/path_helper/path_helper_test.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/path_helper/path_helper_test.php b/tests/path_helper/path_helper_test.php
index 3832307897..bb68f8b3bc 100644
--- a/tests/path_helper/path_helper_test.php
+++ b/tests/path_helper/path_helper_test.php
@@ -411,6 +411,21 @@ class phpbb_path_helper_test extends phpbb_test_case
'http://www.phpbb.com/community',
'../community/',
),
+ array(
+ 'http://www.phpbb.com/foobar',
+ 'http://www.phpbb.com',
+ '',
+ ),
+ array(
+ 'http://www.foobar.com',
+ 'http://www.phpbb.com',
+ '/www.phpbb.com/',
+ ),
+ array(
+ 'foobar',
+ 'http://www.phpbb.com/community',
+ '',
+ )
);
}