[support] File Upload With Spaces Not Always Handled Properly

Earnie Boyd earnie at users.sourceforge.net
Wed May 14 11:47:46 UTC 2008


Quoting Shai Gluskin <shai at content2zero.com>:

> Drupalers,
>
> I went looking through my watchdog tonight (really should do that more) --
> at: admin/logs/watchdog
>
> and I noticed that there were some page not found errors for file downloads
> like this:
>
> File name is: example file.doc
>
> The URL that works is:
> example.com/files/example%20file.doc
>
> The URL that is showing up on the watchdog page-not-found entry is:
> example.com/files/example%2520file.doc
>
> Testing from my own browsers I couldn't repeat the problem.
>
> What browser or what situation is causing the space to be replaced by %2520
> instead of %20? Has anyone ever seen this before? Is there a utility for the
> upload module that rips out spaces from file names? I'm having a problem
> with Thickbox having trouble with images with spaces in their names.
>
> Looking forward to hear about others' experiences on this one.
>

Drupal version and contrib modules list are needed to dissect this.  
Looks like the URL is encoded twice by some means.  %25 == % [1].

[1] http://www.w3schools.com/TAGS/ref_urlencode.asp

Earnie -- http://for-my-kids.com/
-- http://give-me-an-offer.com/



More information about the support mailing list