mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/security-169] Stop loop through referer dir in top directory
SECURITY-169
This commit is contained in:
@@ -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',
|
||||
'',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user