|
|
|
@ -252,8 +252,7 @@ class MailFunc extends PHPUnit\Framework\TestCase
|
|
|
|
|
$body = rcmail_print_body($html, $this->get_html_part(), array('safe' => false, 'plain' => false));
|
|
|
|
|
|
|
|
|
|
$this->assertNotContains('href="/"', $body);
|
|
|
|
|
$this->assertContains('<a href="./#NOP"', $body);
|
|
|
|
|
$this->assertContains('onclick="return false"', $body);
|
|
|
|
|
$this->assertContains('<a>', $body);
|
|
|
|
|
|
|
|
|
|
$html = '<a href="https://roundcube.net">test</a>';
|
|
|
|
|
$body = rcmail_print_body($html, $this->get_html_part(), array('safe' => false, 'plain' => false));
|
|
|
|
|