diff --git a/core/modules/filter/filter.module b/core/modules/filter/filter.module index 0550f52..0571642 100644 --- a/core/modules/filter/filter.module +++ b/core/modules/filter/filter.module @@ -836,8 +836,8 @@ function filter_filter_secure_image_alter(&$image) { $image->setAttribute('title', t('This image has been removed. For security reasons, only images from the local domain are allowed.')); $image_factory = \Drupal::service('image.factory'); $error_image = $image_factory->get('core/misc/icons/ea2800/error.svg'); - $image->setAttribute('height', $error_image->getHeight()); - $image->setAttribute('width', $error_image->getWidth()); + $image->setAttribute('height', '16px'); + $image->setAttribute('width', '16px'); // Add a CSS class to aid in styling. $class = ($image->getAttribute('class') ? trim($image->getAttribute('class')) . ' ' : '');