Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Sort Order by Filename changed in upgrade due to underscores  (Read 1903 times)

0 Members and 1 Guest are viewing this topic.

mrwick

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Sort Order by Filename changed in upgrade due to underscores
« on: March 03, 2007, 07:49:20 pm »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Sort Order by Filename changed in upgrade due to underscores
« Reply #1 on: March 05, 2007, 07:33:15 am »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 21 queries.