diff --git a/program/actions/settings/index.php b/program/actions/settings/index.php index fcb0df97fb..cd5f397668 100644 --- a/program/actions/settings/index.php +++ b/program/actions/settings/index.php @@ -1806,7 +1806,7 @@ public static function wash_html($html) 'charset' => RCUBE_CHARSET, 'html_elements' => ['body', 'link'], 'ignore_elements' => ['body'], - 'html_attribs' => ['rel', 'type'], + 'html_attribs' => ['rel', 'type', 'target'], 'add_comments' => false, ]; diff --git a/tests/Actions/Settings/IndexTest.php b/tests/Actions/Settings/IndexTest.php index 5410bc5d4c..476ac4196e 100644 --- a/tests/Actions/Settings/IndexTest.php +++ b/tests/Actions/Settings/IndexTest.php @@ -111,5 +111,9 @@ public function test_wash_html() $result = \rcmail_action_settings_index::wash_html('

test

'); $this->assertSame('

test

', $result); + + $resultLink = \rcmail_action_settings_index::wash_html('test'); + + $this->assertSame('test', $resultLink); } }