diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-11-22 15:51:48 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-11-22 15:51:48 +0100 |
commit | a3b18d87ddef00424a2dc35061780e1a7dc2c0c6 (patch) | |
tree | 0fdd49d80ba0bdfb1eb0be05e12f72edfe5c4a7c /tests | |
parent | fd993cbaf26cea66fc72c2a744189d7c1fef843c (diff) | |
parent | 9bb302b92ca58d9204290363b190ef4b57009ec6 (diff) | |
download | forums-a3b18d87ddef00424a2dc35061780e1a7dc2c0c6.tar forums-a3b18d87ddef00424a2dc35061780e1a7dc2c0c6.tar.gz forums-a3b18d87ddef00424a2dc35061780e1a7dc2c0c6.tar.bz2 forums-a3b18d87ddef00424a2dc35061780e1a7dc2c0c6.tar.xz forums-a3b18d87ddef00424a2dc35061780e1a7dc2c0c6.zip |
Merge pull request #8 from phpbb/ticket/security-169
[ticket/security-169] Stop loop through referer dir in top directory
Diffstat (limited to 'tests')
-rw-r--r-- | tests/path_helper/path_helper_test.php | 15 |
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', + '', + ) ); } |