'Impossible to move file' fix 'Impossible to move file' fix
 

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

'Impossible to move file' fix

Started by dleary, March 21, 2006, 09:03:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dleary

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.