aboutsummaryrefslogtreecommitdiffstats
path: root/tests/session
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-09-18 09:25:58 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2013-09-18 09:25:58 -0500
commitd85ae0f7bc0bd9663eda83c6713f0ef71289b0f4 (patch)
treec7a8aeab87c44f4a86be845e781484ef05ca2b69 /tests/session
parent9c535da52888d60aecef9799062974e375f22f82 (diff)
downloadforums-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.php16
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,
+ ),
+ ),
);
}