mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[ticket/11832] Fix the web path corrections
Add some real life examples to test PHPBB3-11832
This commit is contained in:
@@ -62,7 +62,7 @@ class phpbb_filesystem_web_root_path_test extends phpbb_test_case
|
||||
),
|
||||
array(
|
||||
$this->phpbb_root_path . 'test.php',
|
||||
$this->phpbb_root_path . 'test.php',
|
||||
$this->phpbb_root_path . '../test.php',
|
||||
'//',
|
||||
),
|
||||
array(
|
||||
@@ -75,7 +75,16 @@ class phpbb_filesystem_web_root_path_test extends phpbb_test_case
|
||||
array(
|
||||
$this->phpbb_root_path . 'test.php',
|
||||
$this->phpbb_root_path . '../../test.php',
|
||||
'////',
|
||||
'/foo/template',
|
||||
'/phpbb3-fork/phpBB/app.php/foo/template',
|
||||
'/phpbb3-fork/phpBB/app.php',
|
||||
),
|
||||
array(
|
||||
$this->phpbb_root_path . 'test.php',
|
||||
$this->phpbb_root_path . '../test.php',
|
||||
'/foo/template',
|
||||
'/phpbb3-fork/phpBB/foo/template',
|
||||
'/phpbb3-fork/phpBB/app.php',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user