Sort Order by Filename changed in upgrade due to underscores Sort Order by Filename changed in upgrade due to underscores
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Sort Order by Filename changed in upgrade due to underscores

Started by mrwick, March 03, 2007, 07:49:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mrwick

When I upgraded CPG from 1.3.3 to 1.4.10, the disallowed characters for filename uploads was inadvertently changed to include spaces.  This resulted in CPG substituting underscores for spaces in new filenames, which resulted in filenames not sorting correctly in an albumn compared to previous pictures.  Since we have a history site, the year is included in the filename so that CCBCO_1942 should come before CCBCO 1943, but with the new underscores, those files sorted to the end of the albumn.

I fixed the new files (100's) and changed the disallowed to not include spaces so the substitution is no longer done, just like the old system.  I tested to make sure that the Linux SUSE host had no problem with the filenames, and it appears OK for now.  My question is, does anyone know of a reason not to allow spaces in a filename under Linux?  Does anyone know why the default would include disallowed spaces?  I assume that there is some reason, perhaps safe mode or something else that would find the spaces undesirable, but I cant imagine what that would be right now.  Any feedback is appreciated.

www.nflcc.org/CPG

Joachim Müller

Quote from: mrwick on March 03, 2007, 07:49:20 PM
My question is, does anyone know of a reason not to allow spaces in a filename under Linux?  Does anyone know why the default would include disallowed spaces?
Because you mustn't use spaces on a webserver, due to how the www works. Spaces are forbidden chars in a file name on a web server that get replaced in an URL, that's why.