aboutsummaryrefslogtreecommitdiff
path: root/engine/tests/regression/trac_bugs.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2013-07-09 12:13:17 -0400
committerBrett Profitt <brett.profitt@gmail.com>2013-07-09 12:13:17 -0400
commit9892692deefdb06d9e7176c72fc5780ab79e3a7d (patch)
tree4931f7e48754cbb5d67ae4ab4b62e67dfbd3d6c4 /engine/tests/regression/trac_bugs.php
parent0dfe018f16e93aff5f046c08994a102e3f5d35e6 (diff)
downloadelgg-9892692deefdb06d9e7176c72fc5780ab79e3a7d.tar.gz
elgg-9892692deefdb06d9e7176c72fc5780ab79e3a7d.tar.bz2
Fixes #5706. Allowing parens in URIs if not last character.
Diffstat (limited to 'engine/tests/regression/trac_bugs.php')
-rw-r--r--engine/tests/regression/trac_bugs.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/tests/regression/trac_bugs.php b/engine/tests/regression/trac_bugs.php
index 5730830bb..f173b5b9f 100644
--- a/engine/tests/regression/trac_bugs.php
+++ b/engine/tests/regression/trac_bugs.php
@@ -291,6 +291,9 @@ class ElggCoreRegressionBugsTest extends ElggCoreUnitTest {
'unquoted already anchor <a href=http://www.yahoo.com>yahoo</a>' =>
'unquoted already anchor <a href=http://www.yahoo.com>yahoo</a>',
+
+ 'parens in uri http://thedailywtf.com/Articles/A-(Long-Overdue)-BuildMaster-Introduction.aspx' =>
+ 'parens in uri <a href="http://thedailywtf.com/Articles/A-(Long-Overdue)-BuildMaster-Introduction.aspx" rel="nofollow">http:/<wbr />/<wbr />thedailywtf.com/<wbr />Articles/<wbr />A-(Long-Overdue)-BuildMaster-Introduction.aspx</a>'
);
foreach ($cases as $input => $output) {
$this->assertEqual($output, parse_urls($input));