mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11850] Add test for outside of the phpBB directory
PHPBB3-11850
This commit is contained in:
parent
9c535da528
commit
d85ae0f7bc
1 changed files with 16 additions and 0 deletions
|
@ -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,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue