1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Image proxy problem with spaces in file name?

Discussion in 'Resolved Bug Reports' started by Kevin, Jan 5, 2015.

  1. Kevin

    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 :)
     
    BirdOPrey5 likes this.
  2. Mike

    Mike XenForo Developer Staff Member

    I've fixed this now. It was an issue only when there were spaces in the URL but not in the query string.
     
    Kevin and BirdOPrey5 like this.
  3. Kevin

    Kevin Well-Known Member

    Mike, thanks for the looking into it and fixing it in the code base! (y)
     

Share This Page