mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-02-19 17:11:20 +01:00
Allow "target" in html attributes when saving signature (#10017)
This commit is contained in:
committed by
GitHub
parent
01a362aa9f
commit
cdd3d1ed69
@@ -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,
|
||||
];
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user