If this is a duplicate issue, or this issue was fixed in a more recent version, please let me know and I'll try to upgrade.

As of right now, with CCK FileField and ImageField installed on my site, a user can upload a file with illegal characters in it (such as &, =, ?, etc), and it throws off the image display entirely, breaking the HTML (since the web browser treats &, for example, as a URL parameter, not part of the filename).

Comments

quicksketch’s picture

Category: bug » support
Status: Active » Fixed

This has been fixed in the 3.3 version of FileField and ImageField, though if you use ImageCache it still doesn't handle special characters properly. You can install Transliteration though and correct the problem site-wide by having it strip out or convert these dangerous characters.

SpikeX’s picture

Thanks for the info. Can I just install Transliteration and it will automatically work with Imagecache/FileField/ImageField?

quicksketch’s picture

Yes, Transliteration automatically cleans up all uploaded files regardless of their source because it works at the PHP level before Drupal even starts processing the files. I'd recommend it all sites unless maintaining exact file names of non-latin characters is important.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.