Duplicate Links being broken if there is a gap/space in the link

Affected version


Well-known member
Since the upgrade to 2.2 old image links where there is a gap in the link no longer show instead the url ends at the gap

Example: the following is a link to an image posted by a member called 'Simon R' , the image is hosted in a separate upload directory

https://www.maggotdrowning.com/forum/uploaded/Simon R/20151019225437_Image00003.jpg

As you can see the url stops after Simon yet previously it would render the full url and in doing so display the image.

If you copy and paste the full url into a browser the image will render as it should. It appears that the forum code is not adding %20 so that browsers recognise it as a space

....if that makes sense :)