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: 'Impossible to move file' fix  (Read 3324 times)

0 Members and 1 Guest are viewing this topic.

dleary

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
'Impossible to move file' fix
« on: March 21, 2006, 09:03:43 pm »

I have experienced an 'impossible to move file' bug, with both coppermine 1.3.1 and 1.4.4.
I use php 4.1.0 on windows.

It only occurs when uploading a file through the form, not for a URI.

The problem:
The relative path of the form "./albums/edit/mHTTP_temp_..." is not working properly for the later call of move_uploaded_file()

The fix:

Find the first location of '$path_to_image = ...' in upload.php
This is on line 1210 for cpg144

make it read:  '$path_to_image = dirname(__FILE__) . ...'

I have attached a unified diff, but it's only one line.

Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 26 queries.