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) 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) { if ($button_label) {
$onclick = "location.href = '$button_url'"; $onclick = "location.href = '$button_url'";

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

Loading…
Cancel
Save