Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2016-04-12 12:51:46 +0300
committerAleksander Machniak <alec@alec.pl>2016-04-12 12:53:04 +0300
commite8ab3d96bd4340fb262e5d83a2e5988f47bba3b0 (patch)
treeb4c9aae7ef65d2bf4be1edaaf05c1f3375f416a1 /tests
parent4bb44c3d90f198b00073f62675fe9193ad0fae24 (diff)
Fix converting mail addresses with @www. into mailto links (#5197)
Diffstat (limited to 'tests')
-rw-r--r--tests/Framework/StringReplacer.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/Framework/StringReplacer.php b/tests/Framework/StringReplacer.php
index 7d9600a78..543601d35 100644
--- a/tests/Framework/StringReplacer.php
+++ b/tests/Framework/StringReplacer.php
@@ -39,6 +39,7 @@ class Framework_StringReplacer extends PHPUnit_Framework_TestCase
array('https://github.com/a/b/compare/3a0f82...1f4b2a after', '<a href="https://github.com/a/b/compare/3a0f82...1f4b2a">https://github.com/a/b/compare/3a0f82...1f4b2a</a> after'),
array('http://<test>', 'http://<test>'),
array('http://', 'http://'),
+ array('test@www.test', '<a href="mailto:test@www.test">test@www.test</a>'),
array('1@1.com www.domain.tld', '<a href="mailto:1@1.com">1@1.com</a> <a href="http://www.domain.tld">www.domain.tld</a>'),
array(' www.domain.tld ', ' <a href="http://www.domain.tld">www.domain.tld</a> '),
array(' www.domain.tld/#!download|856p1|2 ', ' <a href="http://www.domain.tld/#!download|856p1|2">www.domain.tld/#!download|856p1|2</a> '),