From ad18d63cc15d7b0a77a5d90dc9f8bd7476b90c8d Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 5 Feb 2010 08:25:22 +0000 Subject: - Fix handling of extended mailto links (with params) (#1486354) --- tests/mailfunc.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests/mailfunc.php') diff --git a/tests/mailfunc.php b/tests/mailfunc.php index 0e9363a0b..755cadc5e 100644 --- a/tests/mailfunc.php +++ b/tests/mailfunc.php @@ -114,6 +114,22 @@ class rcube_test_mailfunc extends UnitTestCase $this->assertPattern('#http://www.apple.com/legal/privacy/#', $html, "Links with target=_blank"); } + /** + * Test mailto links in html messages + */ + function test_mailto() + { + $part = $this->get_html_part('src/mailto.txt'); + + // render HTML in normal mode + $html = rcmail_html4inline(rcmail_print_body($part, array('safe' => false)), 'foo'); + + $mailto = 'e-mail'; + + $this->assertPattern('|'.preg_quote($mailto, '|').'|', $html, "Extended mailto links"); + } + } ?> \ No newline at end of file -- cgit v1.2.3