diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2013-09-18 09:25:58 -0500 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2013-09-18 09:25:58 -0500 |
commit | d85ae0f7bc0bd9663eda83c6713f0ef71289b0f4 (patch) | |
tree | c7a8aeab87c44f4a86be845e781484ef05ca2b69 /tests/session | |
parent | 9c535da52888d60aecef9799062974e375f22f82 (diff) | |
download | forums-d85ae0f7bc0bd9663eda83c6713f0ef71289b0f4.tar forums-d85ae0f7bc0bd9663eda83c6713f0ef71289b0f4.tar.gz forums-d85ae0f7bc0bd9663eda83c6713f0ef71289b0f4.tar.bz2 forums-d85ae0f7bc0bd9663eda83c6713f0ef71289b0f4.tar.xz forums-d85ae0f7bc0bd9663eda83c6713f0ef71289b0f4.zip |
[ticket/11850] Add test for outside of the phpBB directory
PHPBB3-11850
Diffstat (limited to 'tests/session')
-rw-r--r-- | tests/session/extract_page_test.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/session/extract_page_test.php b/tests/session/extract_page_test.php index d1a49ed3ef..1834eddebc 100644 --- a/tests/session/extract_page_test.php +++ b/tests/session/extract_page_test.php @@ -116,6 +116,22 @@ class phpbb_session_extract_page_test extends phpbb_session_test_case 'forum' => 0, ), ), + array( + './../phpBB/', + '/test/test.php', + 'page=1&test=2', + '/test/', + '', + array( + 'page_name' => 'test.php', + //'page_dir' => '', + 'query_string' => 'page=1&test=2', + 'script_path' => '/test/', + //'root_script_path' => '../phpBB/', + //'page' => '../test/test.php/foo/bar?page=1&test=2', + 'forum' => 0, + ), + ), ); } |