View Single Post
Old December 28th, 2004, 06:45 PM   #1 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
Illegal characters in file names

Hi!
I've just found out that Gallery accepts files with all sorts of characters in the file name.
A user uploaded an image called moinho_#2.jpg and the image is broken because # are illegal.
Further tests show that it accepts almost every character you feed it.

A simple solution would be check the file name on upload and replace everything other than a-z, A-Z, 0-9, - and _ for underscores.

While this might not be such a big issue in english based sites, it is a very big problem with other languages like Portuguese, French, German, etc.

Thanks!
Ricardo
rbl is offline