thomascube
2011-12-09 10e2d65277ec2af5dbf12f8a6d9f5edf1beb9841
Adapt test to real-world: html mail content is always sent through rcmail_html4inline()

1 files modified
2 ■■■ changed files
tests/mailfunc.php 2 ●●● patch | view | raw | blame | history
tests/mailfunc.php
@@ -92,7 +92,7 @@
  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");