JosefNemec / Playnite

Video game library manager with support for wide range of 3rd party libraries and game emulation support, providing one unified interface for your games.
https://playnite.link
MIT License
9.08k stars 492 forks source link

Game descriptions don't display images with percent encoded spaces in their address #2956

Open CanRanBan opened 2 years ago

CanRanBan commented 2 years ago

Bug Description

Adding images stored on the local device works only if the source address doesn't contain percent encoded spaces.

File path without spaces works: <img src="file:///F:/Temp/Test-Image.png" />

File path with spaces doesn't work: <img src="file:///F:/Test/Test%20Image.png" />

To Reproduce

  1. Add a space to either folder path or file name of an image.
  2. Open this file in web browser.
  3. Copy the URL into the src address of an img element.

Diagnostics ID

f2059b7e-a749-4c27-9a82-ade1a6ad7f26

Screenshots

grafik grafik

CanRanBan commented 2 years ago

Workaround for this issue is a regular file path but this clearly wouldn't work for images stored on websites.

Regular file path with spaces works: <img src="F:\Test\Test Image.png" />

grafik