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: Batch upload problem for directories with "." in f  (Read 2220 times)

0 Members and 1 Guest are viewing this topic.

FuguTabetai

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
    • http://FuguTabetai.com/
Batch upload problem for directories with "." in f
« on: April 05, 2004, 04:19:42 pm »

Hello,

  I'm running coppermine version 1.2.1 (upgraded from 1.1) and ran into a problem trying to Batch Upload files.  The problem is in searchnew.php, specifically, this line of code:
Code: [Select]

    $dir = str_replace(".","" ,$dir);

(line 284, searchnew.php, in scandir())

I assume this is being done to normalize out the file path, but it prevents using directories that have "." in the file name, such as 2004.04.03_XXX which I often use.  This wasn't a problem in coppermine 1.1.  I commented out the line in my version, so things work fine now, but I am curious what the intent was?  Worried about remote exploits based on file name strangeness?  

I'm keeping mine commented out for now.  Thanks for all the good work.  Cheers,

fugu
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Batch upload problem for directories with "." in f
« Reply #1 on: April 05, 2004, 05:17:07 pm »

there are issues with folder names with a dot on lunix systems. Since only the gallery admin is supposed to create folders, this shouldn't be a problem. It's recommended to leave the dot checking in the code (undo your modifications!) and stop using dots in folder names (in fact leading dots actually cause problems, but we thought to steer out of harm's way).

GauGau
Logged

FuguTabetai

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
    • http://FuguTabetai.com/
Batch upload problem for directories with "." in f
« Reply #2 on: April 05, 2004, 06:17:47 pm »

In that case, you really should return a better error message.  Something like "Dots are not allowed in folder names."

I don't really like that the recommendation is to unilaterally remove dots from folder names, but thanks for answering.
Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 14 queries.