diff -U 3 cpg144/upload.php cpg144_pristine/upload.php --- cpg144/upload.php 2006-03-21 11:51:33.296875000 -0800 +++ cpg144_pristine/upload.php 2006-02-24 14:30:08.000000000 -0800 @@ -1207,7 +1207,7 @@ $seed = substr(md5(uniqid("")), 0, 8); // Assemble the file path. - $path_to_image = dirname(__FILE__) . './'.$CONFIG['fullpath'].'edit/'. $prefix . $seed . '.' . $suffix; + $path_to_image = './'.$CONFIG['fullpath'].'edit/'. $prefix . $seed . '.' . $suffix; } while (file_exists($path_to_image));