Skip to content

Commit

Permalink
Fixed an issue where the data-uri for inline SVG styles were incorrec…
Browse files Browse the repository at this point in the history
…t in some browsers because the spaces were not URL-encoded ([#408](#408))
  • Loading branch information
khalwat committed Jun 18, 2024
1 parent 28e15f7 commit 9c6cf7a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/services/OptimizedImages.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,6 @@ public function encodeOptimizedSVGDataUri(string $uri): string
$replacements = [
// remove newlines
'/%0A/' => '',
// put spaces back in
'/%20/' => ' ',
// put equals signs back in
'/%3D/' => '=',
// put colons back in
Expand Down

0 comments on commit 9c6cf7a

Please sign in to comment.