diff options
author | Marc Alexander <admin@m-a-styles.de> | 2017-07-27 18:23:43 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2017-07-27 18:23:43 +0200 |
commit | f7d387f93c421e93ef13375bd5e0fb408e921598 (patch) | |
tree | 699dfaf3b13d41675e3fcc1e888c48446cec82de /tests/functions | |
parent | 0aba1faa0803af6013c9ac2071e87f117e9c4835 (diff) | |
download | forums-f7d387f93c421e93ef13375bd5e0fb408e921598.tar forums-f7d387f93c421e93ef13375bd5e0fb408e921598.tar.gz forums-f7d387f93c421e93ef13375bd5e0fb408e921598.tar.bz2 forums-f7d387f93c421e93ef13375bd5e0fb408e921598.tar.xz forums-f7d387f93c421e93ef13375bd5e0fb408e921598.zip |
[ticket/security/211] Add test for line breaks in URL
SECURITY-211
Diffstat (limited to 'tests/functions')
-rw-r--r-- | tests/functions/make_clickable_test.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/functions/make_clickable_test.php b/tests/functions/make_clickable_test.php index 2cdefe689d..2bb7721d21 100644 --- a/tests/functions/make_clickable_test.php +++ b/tests/functions/make_clickable_test.php @@ -60,6 +60,10 @@ class phpbb_functions_make_clickable_test extends phpbb_test_case '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 -->' ), |