diff --git a/src/FormatImages.php b/src/FormatImages.php index 29e45ab..dbc4275 100644 --- a/src/FormatImages.php +++ b/src/FormatImages.php @@ -45,7 +45,9 @@ public function __invoke(Renderer $renderer, $context, string $xml) { if ((bool) $this->settings->get('fof-secure-https.proxy')) { $xml = Utils::replaceAttributes($xml, 'IMG', function ($attributes) { - $attributes['src'] = $this->url->to('api')->route('fof.secure-https.imgurl').'?imgurl='.urlencode($attributes['src']); + if (!preg_match('/^https:\/\//', $attributes['src'])) { + $attributes['src'] = $this->url->to('api')->route('fof.secure-https.imgurl').'?imgurl='.urlencode($attributes['src']); + } return $attributes; });