Allow "target" in html attributes when saving signature (#10017)

This commit is contained in:
Michael Steininger
2025-11-23 14:55:33 +01:00
committed by GitHub
parent 01a362aa9f
commit cdd3d1ed69
2 changed files with 5 additions and 1 deletions

View File

@@ -1806,7 +1806,7 @@ class rcmail_action_settings_index extends rcmail_action
'charset' => RCUBE_CHARSET,
'html_elements' => ['body', 'link'],
'ignore_elements' => ['body'],
'html_attribs' => ['rel', 'type'],
'html_attribs' => ['rel', 'type', 'target'],
'add_comments' => false,
];

View File

@@ -111,5 +111,9 @@ class IndexTest extends ActionTestCase
$result = \rcmail_action_settings_index::wash_html('<p>test</p>');
$this->assertSame('<p>test</p>', $result);
$resultLink = \rcmail_action_settings_index::wash_html('<a href="https://roundcube.net" target="_blank">test</a>');
$this->assertSame('<a href="https://roundcube.net" target="_blank">test</a>', $resultLink);
}
}