diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-09 21:14:45 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-09 21:14:45 +0000 |
| commit | 3c08620bb611ddce5ed4019e653064583bc7264a (patch) | |
| tree | bad37caab79088ca74be430d8e5cd6a252eca82c | |
| parent | 83ec506cb86608242a3b15366243387b3e956176 (diff) | |
Adapt test to real-world: html mail content is always sent through rcmail_html4inline()
git-svn-id: https://svn.roundcube.net/trunk@5587 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/tests/mailfunc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/tests/mailfunc.php b/roundcubemail/tests/mailfunc.php index d8111c7df..1b1bbdf38 100644 --- a/roundcubemail/tests/mailfunc.php +++ b/roundcubemail/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"); |
