mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/security/211] Add test for line breaks in URL
SECURITY-211
This commit is contained in:
parent
0aba1faa08
commit
f7d387f93c
1 changed files with 4 additions and 0 deletions
|
@ -59,6 +59,10 @@ class phpbb_functions_make_clickable_test extends phpbb_test_case
|
|||
'javascript://testhost/viewtopic.php?t=1',
|
||||
'javascript://testhost/viewtopic.php?t=1'
|
||||
),
|
||||
array(
|
||||
"java\nscri\npt://testhost/viewtopic.php?t=1",
|
||||
"java\nscri\n<!-- m --><a class=\"postlink\" href=\"pt://testhost/viewtopic.php?t=1\">pt://testhost/viewtopic.php?t=1</a><!-- m -->"
|
||||
),
|
||||
array(
|
||||
'email@domain.com',
|
||||
'<!-- e --><a href="mailto:email@domain.com">email@domain.com</a><!-- e -->'
|
||||
|
|
Loading…
Add table
Reference in a new issue