codingjoe / django-pictures

Responsive cross-browser image library using modern codes like AVIF & WebP
BSD 2-Clause "Simplified" License
248 stars 20 forks source link

Placeholder URL pattern doesn't support alt text containing slashes #38

Closed jnns closed 2 years ago

jnns commented 2 years ago

When working with image placeholders and alt texts that contain slashes, the respective URLpattern can not be found because the slash character is interpreted as a delimiter between alt, width, ratio etc.

Passing the alt text as URL-encoded string and unquoting it in the utility function that generates the placeholder image should fix this.