Skip to content

Commit ee8a1f5

Browse files
committed
fix: remove encodings of urls
1 parent 2e6748a commit ee8a1f5

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

CHANGELOG_de-DE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.0.23
2+
3+
* Entferne URL-Kodierung von Bild-Pfaden
4+
15
# 1.0.22
26

37
* Optimiere URL-Kodierung von Bild-Pfaden, sodass nun imgproxy v3 supported wird

CHANGELOG_en-GB.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.0.23
2+
3+
* Remove url encoding for image paths
4+
15
# 1.0.22
26

37
* Optimize url encoding for image paths to support imgproxy v3

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"thumbnail"
1212
],
1313
"description": "This plugins allows you to use variable thumbnails, without having them on storage.",
14-
"version": "1.0.22",
14+
"version": "1.0.23",
1515
"type": "shopware-platform-plugin",
1616
"license": "mit",
1717
"authors": [

src/Service/ThumbnailUrlTemplate.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@ public function __construct(SystemConfigService $systemConfigService)
2121

2222
public function getUrl(string $mediaUrl, string $mediaPath, string $width, string $height = ''): string
2323
{
24-
$segments = \explode('/', $mediaPath);
25-
26-
foreach ($segments as $index => $segment) {
27-
$segments[$index] = \rawurlencode($segment);
28-
}
29-
30-
$mediaPath = implode('/', $segments);
31-
3224
return str_replace(
3325
['{mediaUrl}', '{mediaPath}', '{width}', '{height}'],
3426
[$mediaUrl, $mediaPath, $width, ''],

0 commit comments

Comments
 (0)