summaryrefslogtreecommitdiff
path: root/tests/mailfunc.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-12-09 21:14:45 +0000
committerthomascube <thomas@roundcube.net>2011-12-09 21:14:45 +0000
commit10e2d65277ec2af5dbf12f8a6d9f5edf1beb9841 (patch)
treeb21ee6887806c914d6f60ee419b5cac1fa32f0e9 /tests/mailfunc.php
parent2b017e7f79be26563ab767bb9e97fee5d88a01f4 (diff)
Adapt test to real-world: html mail content is always sent through rcmail_html4inline()
Diffstat (limited to 'tests/mailfunc.php')
-rw-r--r--tests/mailfunc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mailfunc.php b/tests/mailfunc.php
index d8111c7df..1b1bbdf38 100644
--- a/tests/mailfunc.php
+++ b/tests/mailfunc.php
@@ -92,7 +92,7 @@ class rcube_test_mailfunc extends UnitTestCase
function test_html_xss2()
{
$part = $this->get_html_part('src/BID-26800.txt');
- $washed = rcmail_print_body($part, array('safe' => true));
+ $washed = rcmail_html4inline(rcmail_print_body($part, array('safe' => true)), 'dabody', '', $attr, true);
$this->assertNoPattern('/alert|expression|javascript|xss/', $washed, "Remove evil style blocks");
$this->assertNoPattern('/font-style:italic/', $washed, "Allow valid styles");