Change remote images to remote resources warning also in html attachment preview

pull/6085/head
Aleksander Machniak 7 years ago
parent 3488531b26
commit db382fa19c

@ -70,7 +70,7 @@ class rcmail_html_page extends rcmail_output_html
*/
public function register_inline_warning($text, $button_label = null, $button_url = null)
{
$text = rcube::Q($text);
$text = html::span('', rcube::Q($text));
if ($button_label) {
$onclick = "location.href = '$button_url'";

@ -237,8 +237,8 @@ if (empty($_GET['_thumb']) && $attachment->is_valid()) {
// insert remote objects warning into HTML body
if ($REMOTE_OBJECTS) {
$OUTPUT->register_inline_warning(
$RCMAIL->gettext('blockedimages'),
$RCMAIL->gettext('showimages'),
$RCMAIL->gettext('blockedresources'),
$RCMAIL->gettext('allow'),
$RCMAIL->url(array_merge($_GET, array('_safe' => 1)))
);
}

Loading…
Cancel
Save