Skip to content

Commit b3735f8

Browse files
committed
Fix double urlencoding issues
1 parent 029f8e4 commit b3735f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Rewriters/Urls.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ public function filterImgTag(string $html): string
2626
return $html;
2727
}
2828

29-
$image = new Image($src);
29+
$image = new Image(
30+
htmlspecialchars_decode($src)
31+
);
3032
$html = preg_replace(
3133
'/ src="([^"]+)"/',
3234
sprintf(' src="%s"', $image->url()),

0 commit comments

Comments
 (0)