Skip to content

Commit

Permalink
fix: encode URIs to comply w/ W3c guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
tobimori committed Feb 8, 2022
1 parent 58bc8f1 commit fa70f74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/KirbyExtended/BlurryPlaceholder.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public static function uri(\Kirby\Cms\File $file, $ratio = null): string
$svg = static::image($file, $ratio);
$dataUri = 'data:image/svg+xml;charset=utf-8,' . static::svgToUri($svg);

return $dataUri;
// Encode string to be compliant with W3C guidelines
return urlencode($dataUri);
}

/**
Expand Down

0 comments on commit fa70f74

Please sign in to comment.