aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functions
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-01-01 11:54:37 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-01-01 11:54:37 +0100
commitbf5f11e11ac0f25441ba891fc16d5a780e4450e2 (patch)
tree12aa20249ca31f91fa3c8ab6795a2bce6f55f3a4 /tests/functions
parent0ff5f9fa0edf9ac3125cc4e871609a90cee1cfac (diff)
parentf7d387f93c421e93ef13375bd5e0fb408e921598 (diff)
downloadforums-bf5f11e11ac0f25441ba891fc16d5a780e4450e2.tar
forums-bf5f11e11ac0f25441ba891fc16d5a780e4450e2.tar.gz
forums-bf5f11e11ac0f25441ba891fc16d5a780e4450e2.tar.bz2
forums-bf5f11e11ac0f25441ba891fc16d5a780e4450e2.tar.xz
forums-bf5f11e11ac0f25441ba891fc16d5a780e4450e2.zip
Merge branch 'ticket/security/211' into ticket/security/211-rhea
Diffstat (limited to 'tests/functions')
-rw-r--r--tests/functions/make_clickable_test.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/functions/make_clickable_test.php b/tests/functions/make_clickable_test.php
index a351a6d527..a6af12b624 100644
--- a/tests/functions/make_clickable_test.php
+++ b/tests/functions/make_clickable_test.php
@@ -53,6 +53,14 @@ class phpbb_functions_make_clickable_test extends phpbb_test_case
'<!-- l --><a class="postlink-local" href="http://testhost/viewtopic.php?t=1">viewtopic.php?t=1</a><!-- l -->'
),
array(
+ '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 -->'
),
@@ -90,6 +98,10 @@ class phpbb_functions_make_clickable_test extends phpbb_test_case
'<!-- m --><a class="postlink" href="ftp://ftp.täst.de/">ftp://ftp.täst.de/</a><!-- m -->'
),
array(
+ 'javascript://täst.de/',
+ 'javascript://täst.de/'
+ ),
+ array(
'sip://bantu@täst.de',
'<!-- m --><a class="postlink" href="sip://bantu@täst.de">sip://bantu@täst.de</a><!-- m -->'
),