Fixed Image proxy problem with spaces in file name?

Kevin

Well-known member
Recently a user posted a bunch of pics from The Simpsons Star Trek tribute and the pictures weren't working with the image proxy enabled. After a bit of experimenting I realized the problem was the spaces in the file names.

To clarify, the user linked to several files with a naming convention like "http://juotpics.com/s/simpsonscredits 11.jpg" (note the spaces in the file name). When embedding the image in the editor the image is viewable and, after saving the post and then hitting 'edit' again the image is viewable, but trying to view the saved image results in no image.

I tried the same test here (https://xenforo.com/community/threads/proxy-image-test.90194/) and, as shown in post #2, I got the same results. If I manually change the spaces to %20 then it works as expected.

Something to do with the image proxy code or something I can do on my VPS to take into account?

Thanks :)
 

Kevin

Well-known member
I've fixed this now. It was an issue only when there were spaces in the URL but not in the query string.
Mike, thanks for the looking into it and fixing it in the code base! (y)
 
Top