Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m giving WPThumb a shot for my on-demand image needs and found this same double slash issue. It doesn’t appear to be creating an issue with the image rendering, but I too am wondering why it is there? Anyone? Thx!

    I decided to look into this a bit more…

    The good news is that this double slash probably doesn’t affect the image getting rendered. See here:

    https://unix.stackexchange.com/questions/1910/how-linux-handles-multiple-path-separators-home-username-file

    The other bit is that I added a one-liner to the plugin to get rid of the double slash, at least in the case where it was affecting me:

    Add the following so that it becomes line 305 of wpthumb.php:

    if ($subdir == '/') { $subdir = ''; } // hotfix for double slash issue

    Obviously this isn’t a permanent fix and it will get overwritten on the next plugin release. If a plugin author is following a long, maybe you could consider a bit of a check here for situations that would generate a double slash situation.

    Or…maybe its all moot, since it seems to work fine for me with the double slashes.

    Great plugin! Thx!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘double slash on cache upload path’ is closed to new replies.