From b24cc934dab20427cb46ce36d653527b4f8e2d9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kie=C3=9Fling?= Date: Fri, 7 Aug 2020 13:34:29 +0200 Subject: [PATCH] =?UTF-8?q?[BUGFIX]=C2=A0prevent=20double=20encoded=20sour?= =?UTF-8?q?ceset=20urls?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Classes/Traits/SourceSetViewHelperTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Traits/SourceSetViewHelperTrait.php b/Classes/Traits/SourceSetViewHelperTrait.php index 7d8913adf..aef83ae4b 100644 --- a/Classes/Traits/SourceSetViewHelperTrait.php +++ b/Classes/Traits/SourceSetViewHelperTrait.php @@ -49,7 +49,7 @@ public function addSourceSet($tag, $src) $srcsetVariant = $this->getImgResource($src, $width, $format, $quality, $treatIdAsReference, null, $crop); $srcsetVariantSrc = rawurldecode($srcsetVariant[3]); - $srcsetVariantSrc = static::preprocessSourceUri(str_replace('%2F', '/', rawurlencode($srcsetVariantSrc)), $this->arguments); + $srcsetVariantSrc = static::preprocessSourceUri($srcsetVariantSrc, $this->arguments); $imageSources[$srcsetVariant[0]] = [ 'src' => $srcsetVariantSrc,