mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-27 04:18:55 +00:00
[ticket/security-180] Add tests for redirecting to main URL
SECURITY-180
This commit is contained in:
parent
ee658bfe7b
commit
18fc621d73
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,8 @@ class phpbb_security_redirect_test extends phpbb_security_test_base
|
||||||
array('https://foobar.com\@http://localhost/phpBB', 'Tried to redirect to potentially insecure url.', false),
|
array('https://foobar.com\@http://localhost/phpBB', 'Tried to redirect to potentially insecure url.', false),
|
||||||
array('https://foobar.com\@localhost/troll/http://localhost/', 'Tried to redirect to potentially insecure url.', false),
|
array('https://foobar.com\@localhost/troll/http://localhost/', 'Tried to redirect to potentially insecure url.', false),
|
||||||
array('http://localhost.foobar.com\@localhost/troll/http://localhost/', 'Tried to redirect to potentially insecure url.', false),
|
array('http://localhost.foobar.com\@localhost/troll/http://localhost/', 'Tried to redirect to potentially insecure url.', false),
|
||||||
|
array('http://localhost/phpBB', false, 'http://localhost/phpBB'),
|
||||||
|
array('http://localhost/phpBB/', false, 'http://localhost/phpBB/'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue